Skip to content

fix: c_uint64 now uses PyLong_AsUnsignedLongLong (#52)#53

Open
sjalloq wants to merge 1 commit intofvutils:mainfrom
sjalloq:fix/uint64
Open

fix: c_uint64 now uses PyLong_AsUnsignedLongLong (#52)#53
sjalloq wants to merge 1 commit intofvutils:mainfrom
sjalloq:fix/uint64

Conversation

@sjalloq
Copy link
Copy Markdown

@sjalloq sjalloq commented Mar 10, 2026

This commit updates gen_sv_class.py to use the correct type for c_uint64. It previously used PyLong_AsLong which is signed C long which overflows to -1 for values with bit 63 set.

The existing test used the only value that wouldn't show this issue, 0xFFFFFFFFFFFFFFFF.

This commit updates gen_sv_class.py to use the correct type for
c_uint64.  It previously used PyLong_AsLong which is signed C long which
overflows to -1 for values with bit 63 set.

The existing test used the only value that wouldn't show this issue,
0xFFFFFFFFFFFFFFFF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant