From: David Reiss Date: Mon, 6 Aug 2007 20:33:00 +0000 (+0000) Subject: Thrift: Fixed rookie mistake. X-Git-Tag: 0.2.0~1280 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=6f226558d605ab7525d5410a5f4c2feb09594081;p=common%2Fthrift.git Thrift: Fixed rookie mistake. 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 --- diff --git a/test/DebugProtoTest.cpp b/test/DebugProtoTest.cpp index 582e1b30..6c773a1f 100644 --- a/test/DebugProtoTest.cpp +++ b/test/DebugProtoTest.cpp @@ -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";