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

minor Int64.format bug #8265

Closed
vicuna opened this issue Sep 4, 2003 · 1 comment
Closed

minor Int64.format bug #8265

vicuna opened this issue Sep 4, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 4, 2003

Original bug ID: 1815
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

I know this function is deprecated, and it's documented to only accept the
%x, etc. format strings, but it currently returns bogus results if you pass
more than that for the format string. It should probably throw an
Invalid_argument exception instead:

     Objective Caml version 3.07+beta 2

Int64.format "__ph__float "0x%X"" (Int64.bits_of_float 1.2345);;

  • : string = "__ph__float "0x126E978DI64""

The result in the above demo is just totally bogus, although it appears
okay at first glance.

Chris

@vicuna
Copy link
Author

vicuna commented Sep 9, 2003

Comment author: administrator

Updated documentation to narrow down range of accepted formats and deprecate the
function even more. XL, 2003-09-09

@vicuna vicuna closed this as completed Sep 9, 2003
@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