You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4804 Reporter: davidgay Status: closed (set by @xavierleroy on 2009-05-24T19:49:59Z) 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
The following code:
open Big_int
let x = minus_big_int (power_int_positive_int 2 31)
let y = int64_of_big_int x
Original bug ID: 4804
Reporter: davidgay
Status: closed (set by @xavierleroy on 2009-05-24T19:49:59Z)
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
The 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 information
Seems to affect values between -2^31 and -2^32
The text was updated successfully, but these errors were encountered: