From: Petteri Aimonen Date: Wed, 5 Feb 2014 15:56:37 +0000 (+0200) Subject: Extreme negative integer constants are a bit nasty to define in C, just avoid the... X-Git-Tag: 3.99.1~14^2~266 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=d3ed0744d037e38ed8737a670fc05aec09f76379;p=apps%2Flow-level-can-service.git Extreme negative integer constants are a bit nasty to define in C, just avoid the trouble in tests for now. --- diff --git a/tests/alltypes/alltypes.proto b/tests/alltypes/alltypes.proto index 6e5425a..db83c9a 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];