Fix an unsigned vs. signed warning on some compiler.
This commit is contained in:
@@ -117,7 +117,7 @@ bool checkreturn pb_skip_string(pb_istream_t *stream)
|
|||||||
return pb_read(stream, NULL, length);
|
return pb_read(stream, NULL, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool checkreturn pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, int *tag, bool *eof)
|
bool checkreturn pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof)
|
||||||
{
|
{
|
||||||
uint32_t temp;
|
uint32_t temp;
|
||||||
*eof = false;
|
*eof = false;
|
||||||
@@ -418,7 +418,7 @@ bool checkreturn pb_decode(pb_istream_t *stream, const pb_field_t fields[], void
|
|||||||
|
|
||||||
while (stream->bytes_left)
|
while (stream->bytes_left)
|
||||||
{
|
{
|
||||||
int tag;
|
uint32_t tag;
|
||||||
pb_wire_type_t wire_type;
|
pb_wire_type_t wire_type;
|
||||||
bool eof;
|
bool eof;
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struc
|
|||||||
* You may want to use these from your caller or callbacks.
|
* You may want to use these from your caller or callbacks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, int *tag, bool *eof);
|
bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
|
||||||
bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
|
bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
|
||||||
|
|
||||||
bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
|
bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
|
||||||
|
|||||||
Reference in New Issue
Block a user