-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
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
FormatFloat() overflow bug on 32bit systems #46
Comments
There are 3 places or so inside |
Anyone happen to know how to force 32-bit for tests? Guess I need more CI
here. I've got a few arm boxes I run at home I could employ.
…On Mon, Jan 9, 2017, 10:58 Dmitri Shuralyov ***@***.***> wrote:
There are 3 places or so inside humanize.FormatFloat that use int. I
suspect that's where the issue likely lies. A fix could be to always use
int64.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAG8xKZtAsYeCijRoHg7iwUvFKU6OTwks5rQoMlgaJpZM4LeEmE>
.
|
Perhaps something like:
travis-ci/travis-ci#6126 appears to be related. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into a bug tonight compiling a 32bit version and found
FormatFloat()
was overflowing an int somewhere. My program is dealing with nanosecond time calculations and I'm humanizing a scaling factor.Interestingly enough,
Commaf()
doesn't have the same problem.The text was updated successfully, but these errors were encountered: