Skip to content

64-bit word literals are parsed incorrectly on 32-bit systems #260

@turboencabulator

Description

@turboencabulator

Version

110.99.3 (Latest)

Operating System

  • Any
  • Linux
  • macOS
  • Windows
  • Other Unix

OS Version

No response

Processor

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

System Component

Basis Library

Severity

Major

Description

Bits 30 and 31 of 64-bit word literals are lost on a 32-bit machine. The problem occurs with version 110.98.1 and later.

Transcript

Standard ML of New Jersey (32-bit) v110.99.3 [built: Tue Oct 18 00:40:03 2022]
- 0wxFFFFFFFFFFFFFFFF : Word64.word;
[autoloading]
[library $SMLNJ-BASIS/basis.cm is stable]
[library $SMLNJ-BASIS/(basis.cm):basis-common.cm is stable]
[autoloading done]
val it = 0wxFFFFFFFF3FFFFFFF : Word64.word

Expected Behavior

No response

Steps to Reproduce

0wxFFFFFFFFFFFFFFFF : Word64.word

Additional Information

No response

Email address

elyk03@gmail.com

Metadata

Metadata

Assignees

Labels

basis-libproblem with Standard ML Basis librarybugSomething isn't workingfixed-in-110.99.4issues that will be fixed in the 110.99.4 version

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions