From 63e673383b1562e62eaa3bbc99eac0556df3f050 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 11 Mar 2020 16:31:51 -0700 Subject: [PATCH] Fixed narrowing warnings in text_encode.c. --- upb/text_encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upb/text_encode.c b/upb/text_encode.c index cb76f76253..d426e67ea2 100644 --- a/upb/text_encode.c +++ b/upb/text_encode.c @@ -260,7 +260,7 @@ static const char *txtenc_unknown(txtenc *e, const char *ptr, const char *end, uint32_t tag; CHK(ptr = txtenc_parsevarint(ptr, end, &tag_64)); CHK(tag_64 < UINT32_MAX); - tag = tag_64; + tag = (uint32_t)tag_64; if ((tag & 7) == UPB_WIRE_TYPE_END_GROUP) { CHK((tag >> 3) == groupnum);