Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004804OCamlOCaml generalpublic2009-05-22 21:552009-05-24 21:50
Reporterdavidgay 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.11.0 
Target VersionFixed in Version3.11.1+dev 
Summary0004804: int64_of_big_int fails on negative values that fit in 32-bits
DescriptionThe following code:
open Big_int

let x = minus_big_int (power_int_positive_int 2 31)
let y = int64_of_big_int x

;;

Printf.printf "%s %Ld\n" (string_of_big_int x) y

produces

$ ocaml nums.cma foo.ml
Exception: Failure "int64_of_big_int".
Additional InformationSeems to affect values between -2^31 and -2^32
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004967)
xleroy (administrator)
2009-05-24 21:49

Fixed in 3.11 bugfix branch. Will go in 3.11.1.

- Issue History
Date Modified Username Field Change
2009-05-22 21:55 davidgay New Issue
2009-05-24 21:49 xleroy Note Added: 0004967
2009-05-24 21:49 xleroy Status new => closed
2009-05-24 21:49 xleroy Resolution open => fixed
2009-05-24 21:49 xleroy Fixed in Version => 3.11.1+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker