Code Review
/
apps
/
low-level-can-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f187aad
)
Clean up one (uint64_t) cast.
author
Petteri Aimonen
<jpa@git.mail.kapsi.fi>
Sun, 2 Sep 2012 17:14:22 +0000
(20:14 +0300)
committer
Petteri Aimonen
<jpa@git.mail.kapsi.fi>
Sun, 2 Sep 2012 17:14:22 +0000
(20:14 +0300)
pb_encode.c
patch
|
blob
|
history
diff --git
a/pb_encode.c
b/pb_encode.c
index
9a6ad99
..
a887382
100644
(file)
--- 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)
{
-
in
t 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)