From c358bb42fd9d4121bd642bcd41a317e5ed7625be Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Fri, 25 Jan 2019 12:15:23 -0800 Subject: [PATCH] A few more Google fixes. --- BUILD | 2 +- upb/pb/decoder.int.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD b/BUILD index 1c6cdef230..a0badc9576 100644 --- a/BUILD +++ b/BUILD @@ -75,6 +75,7 @@ cc_library( "upb/pb/textprinter.c", "upb/pb/varint.c", "upb/pb/varint.int.h", + "upb/table.int.h", ], hdrs = [ "upb/pb/decoder.h", @@ -138,7 +139,6 @@ cc_binary( ], ) - # We strip the tests and remaining rules from google3 until the upb_proto_library() # and upb_proto_reflection_library() rules are fixed. diff --git a/upb/pb/decoder.int.h b/upb/pb/decoder.int.h index 47eb3ed3ad..42fd7f8a75 100644 --- a/upb/pb/decoder.int.h +++ b/upb/pb/decoder.int.h @@ -70,7 +70,7 @@ typedef enum { #define OP_MAX OP_HALT -UPB_INLINE opcode getop(uint32_t instr) { return instr & 0xff; } +UPB_INLINE opcode getop(uint32_t instr) { return (opcode)(instr & 0xff); } struct upb_pbcodecache { upb_arena *arena;