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

int32 conversion bug #2671

Closed
vicuna opened this issue Jan 25, 2001 · 2 comments
Closed

int32 conversion bug #2671

vicuna opened this issue Jan 25, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 25, 2001

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

Bug description

Full_Name: Mark Plesko
Version: 3.00
OS: Red Hat 7.0 and NT 4
Submission from: 207.86.147.86 (207.86.147.86)

The function

let f c = Int32.of_int (Int32.to_int c)

yields different (incorrect) results when using the native compiler (x86) rather
than the bytecode compiler. The conversions appear to be optimized away, thus
overflow never occurs.

-Mark

@vicuna
Copy link
Author

vicuna commented Feb 1, 2001

Comment author: administrator

The function
let f c = Int32.of_int (Int32.to_int c)
yields different (incorrect) results when using the native compiler
(x86) rather than the bytecode compiler. The conversions appear to
be optimized away, thus overflow never occurs.

Well spotted. This will be fixed in the next release (3.01).

Thanks for the bug report.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Feb 5, 2001

Comment author: administrator

Fixed 2001-02-05 by Xavier

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