[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Mon Sep 10 06:56:45 PDT 2012
src/hb-open-type-private.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 811eefe225d20b20f1de20c6e62a0ebd6d89102a
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Mon Sep 10 09:56:27 2012 -0400
Return NULL, not false
Oh well...
diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh
index 7106a2e..3067b90 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<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);
}
More information about the HarfBuzz
mailing list