Standard ML of New Jersey [Version 110.99.7.1; 32-bit; January 17, 2025]
- Word8.toLargeInt 0w0;
val it = 20057480 : IntInf.int
- List.map Word8.toLargeInt [0wx0, 0wx1, 0wx2, 0wx3];
val it = [1,4294967297,8589934593,12884901889] : IntInf.int list
See transcript.
Version
110.99.7.1 (Latest)
Operating System
OS Version
No response
Processor
System Component
Core system
Severity
Major
Description
The
Word8.toLargeIntfunction produces bogus results.Transcript
Expected Behavior
Word8.toLargeInt 0w0should produce0.Steps to Reproduce
See transcript.
Additional Information
No response
Email address
jhr@cs.uchicago.edu