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

ocamldebug erroneously print float array #3230

Closed
vicuna opened this issue Mar 1, 2002 · 1 comment
Closed

ocamldebug erroneously print float array #3230

vicuna opened this issue Mar 1, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 1, 2002

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

@vicuna
Copy link
Author

vicuna commented Mar 8, 2002

Comment author: administrator

Cannot reproduce with 3.04+7 on MacOS X -- damien
Same bug as #3098, was fixed shortly after 3.04 release -- X

@vicuna vicuna closed this as completed Mar 8, 2002
@vicuna vicuna added the bug label Mar 19, 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