summaryrefslogtreecommitdiff
path: root/upb/handlers.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-01-12 20:02:52 -0800
committerJoshua Haberman <jhaberman@gmail.com>2019-01-12 20:02:52 -0800
commitef7c50223a9bd1ab451e82a31a93cab3272b497f (patch)
treef0456382a75803a776c9e9a8b1421e8fded4e848 /upb/handlers.c
parent48863ea0be94ea3d3d61206ad7ce9ead206770fa (diff)
All tests pass again!
Diffstat (limited to 'upb/handlers.c')
-rw-r--r--upb/handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/upb/handlers.c b/upb/handlers.c
index ba27b98..ca978bf 100644
--- a/upb/handlers.c
+++ b/upb/handlers.c
@@ -91,7 +91,7 @@ static bool doset(upb_handlers *h, int32_t sel, const upb_fielddef *f,
if (closure_type && *context_closure_type &&
closure_type != *context_closure_type) {
- UPB_ASSERT(false);
+ return false;
}
if (closure_type)
@@ -103,7 +103,7 @@ static bool doset(upb_handlers *h, int32_t sel, const upb_fielddef *f,
const void *return_type = set_attr.return_closure_type;
const void *table_return_type = h->table[sel].attr.return_closure_type;
if (return_type && table_return_type && return_type != table_return_type) {
- UPB_ASSERT(false);
+ return false;
}
if (table_return_type && !return_type) {
@@ -168,7 +168,7 @@ bool checkstart(upb_handlers *h, const upb_fielddef *f, upb_handlertype_t type,
return_closure_type = attr->return_closure_type;
if (closure_type && return_closure_type &&
closure_type != return_closure_type) {
- UPB_ASSERT(false);
+ return false;
}
return true;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback