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_string: incorrect result from hex string #6875

Closed
vicuna opened this issue May 20, 2015 · 1 comment
Closed

big_int_of_string: incorrect result from hex string #6875

vicuna opened this issue May 20, 2015 · 1 comment

Comments

@vicuna
Copy link

vicuna commented May 20, 2015

Original bug ID: 6875
Reporter: skrah
Status: closed (set by @damiendoligez on 2015-05-20T18:00:00Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: x64
OS: Ubuntu
OS Version: 14.04
Version: 4.02.1
Fixed in version: 4.02.2+dev / +rc1
Category: otherlibs
Duplicate of: #6759

Bug description

The issue is that converting 263-1 from a hex string produces 264-1
here.

Steps to reproduce

[I'm typing this by hand, since I currently don't have a network connection
on the machine where OCaml is installed.]

eq_big_int (big_int_of_string "0xffffffffffffffff") (big_int_of_string "0x7fffffffffffffff");;

  • : bool = true
@vicuna
Copy link
Author

vicuna commented May 20, 2015

Comment author: @damiendoligez

This is a duplicate of #6759 and it's already fixed in our development version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant