Skip to content

Word8.toLargeInt is broken in 32-bit version #292

Description

@pclayton

Version

110.99.4 (Latest)

Operating System

  • Any
  • Linux
  • macOS
  • Windows
  • Other Unix

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

  • Any
  • Arm (using Rosetta)
  • PowerPC
  • Sparc
  • x86 (32-bit)
  • x86-64 (64-bit)
  • Other

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcompilerproblem with compilerfixed-in-110.99.5issues that will be fixed in the 110.99.5 version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions