summaryrefslogtreecommitdiffstats
path: root/pb_encode.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-09-02 20:14:22 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-09-02 20:14:22 +0300
commit07d44cf632bb3d1a4fb87c44e422ab9af42f2717 (patch)
tree9f5ec56f15c59d50bc9fbd375e4faaa8b69acba9 /pb_encode.c
parentf187aad63db2ff8e1a82508f4a43988b43e10f54 (diff)
Clean up one (uint64_t) cast.
Diffstat (limited to 'pb_encode.c')
-rw-r--r--pb_encode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pb_encode.c b/pb_encode.c
index 9a6ad99..a887382 100644
--- a/pb_encode.c
+++ b/pb_encode.c
@@ -268,8 +268,8 @@ bool checkreturn pb_encode_fixed64(pb_ostream_t *stream, const void *value)
bool checkreturn pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, int field_number)
{
- int tag = wiretype | (field_number << 3);
- return pb_encode_varint(stream, (uint64_t)tag);
+ uint64_t tag = wiretype | (field_number << 3);
+ return pb_encode_varint(stream, tag);
}
bool checkreturn pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_t *field)