From b485832b664fe6d44f832919e28d50fb0e54b48a Mon Sep 17 00:00:00 2001 From: "epoger@google.com" Date: Fri, 7 Dec 2012 15:54:01 +0000 Subject: [PATCH] Mark 64-bit constants as ULL to fix broken 32-bit Mac 10.6 build TBR=bungeman Review URL: https://codereview.appspot.com/6867079 git-svn-id: http://skia.googlecode.com/svn/trunk@6704 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/ChecksumTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/ChecksumTest.cpp b/tests/ChecksumTest.cpp index dea0eef..e8a2f25 100644 --- a/tests/ChecksumTest.cpp +++ b/tests/ChecksumTest.cpp @@ -125,13 +125,13 @@ namespace skiatest { REPORTER_ASSERT(fReporter, GetTestDataChecksum(256) == 0xd4de9dc9); REPORTER_ASSERT(fReporter, GetTestDataChecksum(260) == 0xecf0325d); fWhichAlgorithm = kSkCityHash64; - REPORTER_ASSERT(fReporter, ComputeChecksum(NULL, 0) == 0x9ae16a3b2f90404f); - REPORTER_ASSERT(fReporter, GetTestDataChecksum(4) == 0x82bffd898958e540); - REPORTER_ASSERT(fReporter, GetTestDataChecksum(8) == 0xad5a13e1e8e93b98); - REPORTER_ASSERT(fReporter, GetTestDataChecksum(128) == 0x10b153630af1f395); - REPORTER_ASSERT(fReporter, GetTestDataChecksum(132) == 0x7db71dc4adcc6647); - REPORTER_ASSERT(fReporter, GetTestDataChecksum(256) == 0xeee763519b91b010); - REPORTER_ASSERT(fReporter, GetTestDataChecksum(260) == 0x2fe19e0b2239bc23); + REPORTER_ASSERT(fReporter, ComputeChecksum(NULL, 0) == 0x9ae16a3b2f90404fULL); + REPORTER_ASSERT(fReporter, GetTestDataChecksum(4) == 0x82bffd898958e540ULL); + REPORTER_ASSERT(fReporter, GetTestDataChecksum(8) == 0xad5a13e1e8e93b98ULL); + REPORTER_ASSERT(fReporter, GetTestDataChecksum(128) == 0x10b153630af1f395ULL); + REPORTER_ASSERT(fReporter, GetTestDataChecksum(132) == 0x7db71dc4adcc6647ULL); + REPORTER_ASSERT(fReporter, GetTestDataChecksum(256) == 0xeee763519b91b010ULL); + REPORTER_ASSERT(fReporter, GetTestDataChecksum(260) == 0x2fe19e0b2239bc23ULL); // TODO: note the weakness exposed by these collisions... // We need to improve the SkChecksum algorithm. -- 2.7.4