Thrift: Fixed rookie mistake.
authorDavid Reiss <dreiss@apache.org>
Mon, 6 Aug 2007 20:33:00 +0000 (20:33 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 6 Aug 2007 20:33:00 +0000 (20:33 +0000)
Summary:
This test now works on 32-bit.

Reviewed By: mcslee

Test Plan: Ran the comment at the top of the file.

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665192 13f79535-47bb-0310-9956-ffa450edef68

test/DebugProtoTest.cpp

index 582e1b3..6c773a1 100644 (file)
@@ -23,7 +23,7 @@ int main() {
   ooe.a_bite    = 0xd6;
   ooe.integer16 = 27000;
   ooe.integer32 = 1<<24;
-  ooe.integer64 = 6000000000;
+  ooe.integer64 = (uint64_t)6000 * 1000 * 1000;
   ooe.double_precision = M_PI;
   ooe.some_characters  = "Debug THIS!";
   ooe.zomg_unicode     = "\xd7\n\a\t";