summaryrefslogtreecommitdiff
path: root/core/upb_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/upb_msg.h')
-rw-r--r--core/upb_msg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/upb_msg.h b/core/upb_msg.h
index 475b346..1318e08 100644
--- a/core/upb_msg.h
+++ b/core/upb_msg.h
@@ -88,7 +88,7 @@ INLINE upb_value upb_value_read(upb_valueptr ptr, upb_fieldtype_t ft) {
val.type = UPB_VALUETYPE_ARRAY;
#endif
break;
- default: printf("type: %d\n", ft); assert(false);
+ default: assert(false);
}
return val;
@@ -202,7 +202,7 @@ INLINE bool upb_msg_has(upb_msg *msg, upb_fielddef *f) {
}
INLINE upb_value upb_msg_get(upb_msg *msg, upb_fielddef *f) {
- return upb_value_read(_upb_msg_getptr(msg, f), f->type);
+ return upb_value_read(_upb_msg_getptr(msg, f), upb_field_valuetype(f));
}
// Unsets all field values back to their defaults.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback