Skip to content

Commit

Permalink
Update hash code test for RR objects for 32-bit machines
Browse files Browse the repository at this point in the history
Also fix the comments -- these hash codes differ based on 32-bit
v. 64-bit, not endianness.
  • Loading branch information
d-torrance committed Jul 30, 2024
1 parent 7db99f9 commit 137c226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/m2/basictests/hashcodes.m2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ assert( (hash true) === 444777 )
assert( (hash false) === 777333 )

-- these might change if our floating point implementation changes, but let's check anyway:
assert( hash 1.23p200 === 18446744072207201388 -* big endian *- or hash 1.23p200 == -640232547 -* little endian *- )
assert( hash 1.23p200 === 18446744072207201388 -* 64-bit *- or hash 1.23p200 == 18446744073069319069 -* 32-bit *- )

-- Local Variables:
-- compile-command: "make -C $M2BUILDDIR/Macaulay2/packages/Macaulay2Doc/basictests hashcodes.okay"
Expand Down

0 comments on commit 137c226

Please sign in to comment.