From 4667ed4be921b2142321e47c8ccc6a35a9189277 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 6 Feb 2011 08:21:47 -0800 Subject: All tests pass again, valgrind-clean! Next up: benchmarks. --- core/upb_msg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/upb_msg.h') 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. -- cgit v1.2.3