Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2019-12-16 17:30:05 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2019-12-16 17:30:05 +0300
commit28706965251c26d5f9dab6defdca2e384cbf4da7 (patch)
tree2d9dda5a2d15aaf76b233fb650eefce130d025e7 /pb_decode.c
parentb6a7e454027ab168f19f1da109371ae0c03c6369 (diff)
Further compiler warning fix
Diffstat (limited to 'pb_decode.c')
-rw-r--r--pb_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pb_decode.c b/pb_decode.c
index d318471..62a7d97 100644
--- a/pb_decode.c
+++ b/pb_decode.c
@@ -1072,7 +1072,7 @@ static bool checkreturn pb_decode_inner(pb_istream_t *stream, const pb_msgdesc_t
if ((req_field_count & 31) != 0)
{
if (fields_seen.bitfield[req_field_count >> 5] !=
- (allbits >> (32 - (req_field_count & 31))))
+ (allbits >> (uint8_t)(32 - (req_field_count & 31))))
{
PB_RETURN_ERROR(stream, "missing required field");
}