Skip to content
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

big_int_of_int64 is incorrect #4792

Closed
vicuna opened this issue May 15, 2009 · 1 comment
Closed

big_int_of_int64 is incorrect #4792

vicuna opened this issue May 15, 2009 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented May 15, 2009

Original bug ID: 4792
Reporter: fbesson
Status: closed (set by @xavierleroy on 2009-05-18T13:20:22Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.0
Fixed in version: 3.11.1+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

Bonjour,

It seems that there are cases for which big_int_of_int64 is buggy.
For instance,

string_of_big_int (big_int_of_int64 (Int64.of_int32 Int32.min_int)) does not return
?2147483648 but -18446744071562067968

Yet Int64.to_string (Int64.of_int32 Int32.min_int) returns the correct value.

--
Frédéric Besson

Additional information

OS: MAC OS X 10.4.11
Processor : Intel Core 2 Duo

@vicuna
Copy link
Author

vicuna commented May 18, 2009

Comment author: @xavierleroy

Silly typo. Fixed in CVS branch "release311", will be released in 3.11.1 shortly.

@vicuna vicuna closed this as completed May 18, 2009
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant