Thrift-1395: Patch to prevent warnings for integer types in some cases
authorJake Farrell <jfarrell@apache.org>
Tue, 25 Oct 2011 02:20:26 +0000 (02:20 +0000)
committerJake Farrell <jfarrell@apache.org>
Tue, 25 Oct 2011 02:20:26 +0000 (02:20 +0000)
commit0c0f651e1079ffa95be0d5b9a768fdef8af9dc9b
treedb79033c72fa774c0467c30a6eec28223cadf32f
parentbcbf6d6fcda19768ab526e4dd15422584e9db79e
Thrift-1395: Patch to prevent warnings for integer types in some cases
Client: delpi
Patch: Jens Geyer

Constants such as i32 = 0x80000000 produce a Delphi warning. The current code renders such values as positive integer, which needs an explicit typecast to satisfy the Delphi compiler.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1188494 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_delphi_generator.cc