numf_parser panics with usize / does not compile with usize #22

Closed
opened 2024-05-23 00:21:12 +02:00 by PlexSheep · 3 comments
Owner
No description provided.
PlexSheep added the
Kind/Breaking
Kind/Bug
Priority
High
Reviewed
Confirmed
labels 2024-05-23 00:21:12 +02:00
Author
Owner

limitation in libpt, will need to fix upstream

limitation in libpt, will need to fix upstream
Author
Owner

We have a test testing for this (parser_generics), but it does not test for usize. usize is the only affected unsigned int.

We have a test testing for this (`parser_generics`), but it does not test for `usize`. `usize` is the only affected unsigned int.
PlexSheep changed title from numf_parser only uses u128 despite generic, panics with other types to numf_parser panics with `usize` / does not compile with `usize` 2024-05-23 13:13:13 +02:00
Author
Owner

This makes sense, as usize is guaranteed to be at least a 16 bit unsigned integer, but has no guaranteed max value. THerefore, in the future it could be larger than u128 (on 256-bit systems.). usize is the size of a pointer on the OS.

This makes sense, as `usize` is guaranteed to be at least a 16 bit unsigned integer, but has no guaranteed max value. THerefore, in the future it could be larger than `u128` (on 256-bit systems.). `usize` is the size of a pointer on the OS.
PlexSheep added
Reviewed
Won't Fix
and removed
Reviewed
Confirmed
labels 2024-05-23 13:16:24 +02:00
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PlexSheep/numf#22
No description provided.