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: 947 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Mentré
Version: ocaml-3.04
OS: Linux debian 2.2
Submission from: 194.51.18.66 (194.51.18.66)
Under ocamldebug, float arrays are erroneously printed.
Here the details :
[David@KEMPER /tmp]$ cat tmp.ml
let a = [| 0.0; 0.1; 0.2 |]
let _ = print_float a.(1)
[David@KEMPER /tmp]$ ocamlc -g tmp.ml
[David@KEMPER /tmp]$ ocamldebug ./a.out
Objective Caml Debugger version 3.04
[...]
(ocd) b
Time : 16 - pc : 5052 - module Tmp
4 let _ = print_float a.(1)<|a|>
(ocd) print a
a : float array =
[|0; 0.1; 0.2; 7.04327392585; 7.04333591625; 7.04321384594|]
^__it should print [|0; 0.1; 0.2|]
I hope this time it is a real bug. ;)
Best regards,
david
The text was updated successfully, but these errors were encountered:
Original bug ID: 947
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Mentré
Version: ocaml-3.04
OS: Linux debian 2.2
Submission from: 194.51.18.66 (194.51.18.66)
Under ocamldebug, float arrays are erroneously printed.
Here the details :
[David@KEMPER /tmp]$ cat tmp.ml
let a = [| 0.0; 0.1; 0.2 |]
let _ = print_float a.(1)
[David@KEMPER /tmp]$ ocamlc -g tmp.ml
[David@KEMPER /tmp]$ ocamldebug ./a.out
Objective Caml Debugger version 3.04
[...]
(ocd) b
Time : 16 - pc : 5052 - module Tmp
4 let _ = print_float a.(1)<|a|>
(ocd) print a
a : float array =
[|0; 0.1; 0.2; 7.04327392585; 7.04333591625; 7.04321384594|]
^__it should print [|0; 0.1; 0.2|]
I hope this time it is a real bug. ;)
Best regards,
david
The text was updated successfully, but these errors were encountered: