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
ByteSize.FromBits(Int64.MaxValue);
The above initializes the struct with a number of bits equal to -9223372036854775808. Surrounding large numbers also don't work.
-9223372036854775808
Please fix your math or change the argument type to Int32 if you handle smaller numbers only.
Int32
The text was updated successfully, but these errors were encountered:
Fix #37 by avoiding division of a long/int64
6425b77
Thanks for pointing this out, I've fixed the issue in this commit that's slated to be part of the next version. 6425b77#diff-d2822c0dc3a5209b07ad5954b9c3ddaa
Sorry, something went wrong.
1bbc35a
This fix is in v2, see https://www.nuget.org/packages/ByteSize/2.0.0
No branches or pull requests
The above initializes the struct with a number of bits equal to
-9223372036854775808
. Surrounding large numbers also don't work.Please fix your math or change the argument type to
Int32
if you handle smaller numbers only.The text was updated successfully, but these errors were encountered: