Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 3118877

Browse files
committed
Fix Issue 19090 - core.internal.hash.bytesHash unit test uses incorrect test vector on BigEndian machines
1 parent 6121d40 commit 3118877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/internal/hash.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ pure nothrow @system @nogc unittest
663663
version(BigEndian)
664664
{
665665
const ubyte[7] a = [99, 4, 3, 2, 1, 5, 88];
666-
const uint[2] b = [0x01_02_03_04, 0x05_ff_ff_ff];
666+
const uint[2] b = [0x04_03_02_01, 0x05_ff_ff_ff];
667667
}
668668
else
669669
{

0 commit comments

Comments
 (0)