We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#303/#304 don't seem to work for values over ULONG_MAX.
In [5]: c = s.bitvecvalD(72, str(0xaa00000000000000bb)) In [6]: hex(c.value) Out[6]: '0xffffffffffffffff'
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
I assume you're referring to over the Python API and not (e.g.,) the STP binary?
My guess (and I haven't checked): c.value is a long and we need some arbitrary length type to support returning values such as these.
c.value
Would a string work (maybe)?
Sorry, something went wrong.
Yes I'm using the Python API.
Okay, so "behind the scenes", this ends-up using getBVUnsignedLongLong (which gives a c_uint64), which is the cause of the issue.
getBVUnsignedLongLong
c_uint64
As I mentioned, would a string be okay for this?
That would probably be fine - if I had been around for #303, I'd probably suggest using a byte-string instead, but either would work I imagine.
No branches or pull requests
#303/#304 don't seem to work for values over ULONG_MAX.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: