diff options
author | Josh Haberman <jhaberman@gmail.com> | 2013-12-20 17:40:40 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2013-12-20 17:40:40 -0800 |
commit | ce9bba3cb5409844f8f3d7dcc235a9ea30cad090 (patch) | |
tree | 6c4e0a7c023c790a278f3616c749280c8da205af /upb/refcounted.c | |
parent | aa8db6ab5ea18848247b8c4ac4715cf344941e94 (diff) |
Sync from Google-internal development.
Diffstat (limited to 'upb/refcounted.c')
-rw-r--r-- | upb/refcounted.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/upb/refcounted.c b/upb/refcounted.c index fbeca64..455e536 100644 --- a/upb/refcounted.c +++ b/upb/refcounted.c @@ -315,7 +315,7 @@ typedef enum { UPB_NORETURN static void err(tarjan *t) { longjmp(t->err, 1); } UPB_NORETURN static void oom(tarjan *t) { - upb_status_seterrliteral(t->status, "out of memory"); + upb_status_seterrmsg(t->status, "out of memory"); err(t); } @@ -353,7 +353,7 @@ static void push(tarjan *t, const upb_refcounted *r) { // get 31 bits, which is plenty (limit of 2B objects frozen at a time). setattr(t, r, GREEN | (t->index << 2) | (t->index << 33)); if (++t->index == 0x80000000) { - upb_status_seterrliteral(t->status, "too many objects to freeze"); + upb_status_seterrmsg(t->status, "too many objects to freeze"); err(t); } upb_inttable_push(&t->stack, upb_value_ptr((void*)r)); |