LL suffix for 64-bit constant, unbreak minetest on 32-bit arch.
This commit is contained in:
parent
ec9151ff23
commit
d31dd36326
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-src_unittest_test_serialization_cpp,v 1.1 2015/09/24 09:50:24 sthen Exp $
|
||||
--- src/unittest/test_serialization.cpp.orig Thu Sep 24 03:40:40 2015
|
||||
+++ src/unittest/test_serialization.cpp Thu Sep 24 03:40:44 2015
|
||||
@@ -289,7 +289,7 @@ void TestSerialization::testStreamRead()
|
||||
UASSERT(readU8(is) == 0x11);
|
||||
UASSERT(readU16(is) == 0x2233);
|
||||
UASSERT(readU32(is) == 0x44556677);
|
||||
- UASSERT(readU64(is) == 0x8899AABBCCDDEEFF);
|
||||
+ UASSERT(readU64(is) == 0x8899AABBCCDDEEFFLL);
|
||||
|
||||
UASSERT(readS8(is) == -128);
|
||||
UASSERT(readS16(is) == 30000);
|
||||
@@ -330,7 +330,7 @@ void TestSerialization::testStreamWrite()
|
||||
writeU8(os, 0x11);
|
||||
writeU16(os, 0x2233);
|
||||
writeU32(os, 0x44556677);
|
||||
- writeU64(os, 0x8899AABBCCDDEEFF);
|
||||
+ writeU64(os, 0x8899AABBCCDDEEFFLL);
|
||||
|
||||
writeS8(os, -128);
|
||||
writeS16(os, 30000);
|
Loading…
Reference in New Issue
Block a user