THRIFT-916: Commit THRIFT-916_fix_no-overflow.patch -- remove overflow coming from a few constants.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1039885 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/test/SpecializationTest.cpp b/lib/cpp/test/SpecializationTest.cpp
index 954585a..fae1d32 100644
--- a/lib/cpp/test/SpecializationTest.cpp
+++ b/lib/cpp/test/SpecializationTest.cpp
@@ -18,7 +18,7 @@
OneOfEach ooe;
ooe.im_true = true;
ooe.im_false = false;
- ooe.a_bite = 0xd6;
+ ooe.a_bite = 0x7f;
ooe.integer16 = 27000;
ooe.integer32 = 1<<24;
ooe.integer64 = (uint64_t)6000 * 1000 * 1000;
@@ -100,7 +100,7 @@
assert(hm == hm2);
- hm2.big[0].a_bite = 0xFF;
+ hm2.big[0].a_bite = 0x00;
assert(hm != hm2);