Return NULL, not false

Oh well...
This commit is contained in:
Behdad Esfahbod 2012-09-10 09:56:27 -04:00
parent 166b5cf7ec
commit 811eefe225
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ struct hb_serialize_context_t
{ {
unsigned int size = obj.get_size (); unsigned int size = obj.get_size ();
assert (this->start < (char *) &obj && (char *) &obj <= this->head && (char *) &obj + size >= this->head); assert (this->start < (char *) &obj && (char *) &obj <= this->head && (char *) &obj + size >= this->head);
if (unlikely (!this->allocate_size<Type> (((char *) &obj) + size - this->head))) return false; if (unlikely (!this->allocate_size<Type> (((char *) &obj) + size - this->head))) return NULL;
return reinterpret_cast<Type *> (&obj); return reinterpret_cast<Type *> (&obj);
} }