diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2015-09-13 11:38:54 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2015-09-13 11:38:54 +0300 |
commit | 6e72df4808aa138f1396ad098ce2d06a6feba882 (patch) | |
tree | 4154ca61069643a2a668f016a3263b152efcdea1 /tests/regression/issue_166/enums.proto | |
parent | 0b29baf5deaa4213c08ee71fa55d3d0b2ed709e4 (diff) |
Fix maximum encoded size for negative enums (issue #166).
Diffstat (limited to 'tests/regression/issue_166/enums.proto')
-rw-r--r-- | tests/regression/issue_166/enums.proto | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/regression/issue_166/enums.proto b/tests/regression/issue_166/enums.proto new file mode 100644 index 00000000..a0964ab4 --- /dev/null +++ b/tests/regression/issue_166/enums.proto @@ -0,0 +1,16 @@ +enum SignedEnum { + SE_MIN = -1; + SE_MAX = 255; +} + +enum UnsignedEnum { + UE_MAX = 65536; +} + +message SignedMsg { + required SignedEnum value = 1; +} + +message UnsignedMsg { + required UnsignedEnum value = 1; +} |