Fix signedness warning in example_unions.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sat, 4 Aug 2012 11:34:19 +0000 (14:34 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sat, 4 Aug 2012 11:34:19 +0000 (14:34 +0300)
example_unions/decode.c

index b20df84..edd568c 100644 (file)
@@ -17,7 +17,7 @@
 const pb_field_t* decode_unionmessage_type(pb_istream_t *stream)
 {
     pb_wire_type_t wire_type;
-    int tag;
+    uint32_t tag;
     bool eof;
 
     while (pb_decode_tag(stream, &wire_type, &tag, &eof))