Version
110.99.4 (Latest)
Operating System
OS Version
Linux fedora 6.2.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 11 16:51:53 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Processor
System Component
Basis Library
Severity
Minor
Description
In 32-bit SML/NJ, Word8.toLargeInt does not give the correct result.
Transcript
[username@hostname sml]$ sml -32
Standard ML of New Jersey (32-bit) v110.99.4 [built: Fri Jan 26 09:05:35 2024]
- Word8.toLargeInt 0w0;
[autoloading]
[library $SMLNJ-BASIS/basis.cm is stable]
[library $SMLNJ-BASIS/(basis.cm):basis-common.cm is stable]
[autoloading done]
val it = 4149707864 : IntInf.int
- Word8.toLargeInt 0w1;
val it = 8444675160 : IntInf.int
- Word8.toLargeInt 0w2;
val it = 12739642456 : IntInf.int
Expected Behavior
> Word8.toLargeInt 0w0;
val it = 0: LargeInt.int
Steps to Reproduce
See transcript.
Additional Information
No response
Email address
phil.clayton@veonix.com
Version
110.99.4 (Latest)
Operating System
OS Version
Linux fedora 6.2.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 11 16:51:53 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Processor
System Component
Basis Library
Severity
Minor
Description
In 32-bit SML/NJ,
Word8.toLargeIntdoes not give the correct result.Transcript
Expected Behavior
Steps to Reproduce
See transcript.
Additional Information
No response
Email address
phil.clayton@veonix.com