Allow using 8/16/32/64 as values in int_size setting
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Mon, 5 Jan 2015 20:32:34 +0000 (22:32 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Mon, 5 Jan 2015 20:32:34 +0000 (22:32 +0200)
generator/proto/nanopb.proto

index 1bde596..e830ec2 100644 (file)
@@ -20,10 +20,10 @@ enum FieldType {
 
 enum IntSize {
     IS_DEFAULT = 0; // Default, 32/64bit based on type in .proto
-    IS_8 = 1;
-    IS_16 = 2;
-    IS_32 = 3;
-    IS_64 = 4;
+    IS_8 = 8;
+    IS_16 = 16;
+    IS_32 = 32;
+    IS_64 = 64;
 }
 
 // This is the inner options message, which basically defines options for