aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-02-05 17:56:37 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-02-05 17:56:37 +0200
commitd3ed0744d037e38ed8737a670fc05aec09f76379 (patch)
treee3c6cded90950e551b51e6dffb7631362f7f9981
parent879860be196712990b1fb41cecd5a25229151e56 (diff)
Extreme negative integer constants are a bit nasty to define in C, just avoid the trouble in tests for now.
-rw-r--r--tests/alltypes/alltypes.proto4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/alltypes/alltypes.proto b/tests/alltypes/alltypes.proto
index 6e5425a3..db83c9a6 100644
--- a/tests/alltypes/alltypes.proto
+++ b/tests/alltypes/alltypes.proto
@@ -15,11 +15,11 @@ enum HugeEnum {
message Limits {
required int32 int32_min = 1 [default = 2147483647];
- required int32 int32_max = 2 [default = -2147483648];
+ required int32 int32_max = 2 [default = -2147483647];
required uint32 uint32_min = 3 [default = 4294967295];
required uint32 uint32_max = 4 [default = 0];
required int64 int64_min = 5 [default = 9223372036854775807];
- required int64 int64_max = 6 [default = -9223372036854775807]; /* GCC gives a warning about -2**63, so just avoid the trouble for now.. */
+ required int64 int64_max = 6 [default = -9223372036854775807];
required uint64 uint64_min = 7 [default = 18446744073709551615];
required uint64 uint64_max = 8 [default = 0];
required HugeEnum enum_min = 9 [default = Positive];