summaryrefslogtreecommitdiff
path: root/src/upb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb.h')
-rw-r--r--src/upb.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/upb.h b/src/upb.h
index 83917af..27bf5fc 100644
--- a/src/upb.h
+++ b/src/upb.h
@@ -35,8 +35,6 @@ 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; }
-
/* Fundamental types and type constants. **************************************/
/* A list of types as they are encoded on-the-wire. */
@@ -104,7 +102,7 @@ union upb_value {
bool _bool;
struct upb_string *str;
struct upb_array *arr;
- void *msg;
+ struct upb_msg *msg;
};
/* A pointer to a .proto value. The owner must have an out-of-band way of
@@ -119,7 +117,7 @@ union upb_value_ptr {
bool *_bool;
struct upb_string **str;
struct upb_array **arr;
- void **msg;
+ struct upb_msg **msg;
void *_void;
};
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback