From 811eefe225d20b20f1de20c6e62a0ebd6d89102a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 10 Sep 2012 09:56:27 -0400 Subject: [PATCH] Return NULL, not false Oh well... --- src/hb-open-type-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 7106a2e82..3067b900a 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -434,7 +434,7 @@ struct hb_serialize_context_t { unsigned int size = obj.get_size (); assert (this->start < (char *) &obj && (char *) &obj <= this->head && (char *) &obj + size >= this->head); - if (unlikely (!this->allocate_size (((char *) &obj) + size - this->head))) return false; + if (unlikely (!this->allocate_size (((char *) &obj) + size - this->head))) return NULL; return reinterpret_cast (&obj); }