From e8718306a5bc688bea31c03d52b997166f0ba578 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 8 Jul 2009 19:40:02 -0700 Subject: Bugfix and additions to upb.h and upb_string.h --- src/upb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/upb.h') diff --git a/src/upb.h b/src/upb.h index 64f2c54..685a292 100644 --- a/src/upb.h +++ b/src/upb.h @@ -36,6 +36,7 @@ extern "C" { #define UPB_INDEX(base, i, m) (void*)((char*)(base) + ((i)*(m))) INLINE uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; } +INLINE uint32_t min(uint32_t a, uint32_t b) { return a < b ? a : b; } /* Value type as defined in a .proto file. The values of this are defined by * google_protobuf_FieldDescriptorProto_Type (from descriptor.proto). -- cgit v1.2.3