/[Apache-SVN]
ViewVC logotype

Revision 727130


Jump to revision: Previous Next
Author: dreiss
Date: Tue Dec 16 20:28:13 2008 UTC (15 years, 10 months ago)
Changed paths: 3
Log Message:
THRIFT-225. java/cpp: Handle non-i32 integer constants properly

Java generates a warning when converting from an integer constant
to a byte or short without an explicit cast.  This change adds a
cast to byte and short literals in Java.

Both Java and C++ fail to compile integer literals larger than 2^31
unless they are decorated with "L" (for Java) or "LL" (for g++).
This change adds the appropriate decorations.


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_java_generator.cc modified , text changed
Directoryincubator/thrift/trunk/test/DebugProtoTest.thrift modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26