From 07d44cf632bb3d1a4fb87c44e422ab9af42f2717 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 2 Sep 2012 20:14:22 +0300 Subject: Clean up one (uint64_t) cast. --- pb_encode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pb_encode.c b/pb_encode.c index 9a6ad99f..a8873828 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) -- cgit 1.2.3-korg