Fix debug build
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 19 Apr 2010 06:27:56 +0000 (02:27 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 21 Apr 2010 05:42:11 +0000 (01:42 -0400)
src/hb-open-type-private.hh
src/hb-ot-layout-gsubgpos-private.hh

index 836a98f..9977a6e 100644 (file)
@@ -125,7 +125,7 @@ struct Null <Type> \
        HB_STMT_START { \
            if (sanitize_depth < HB_DEBUG_SANITIZE) \
                fprintf (stderr, "SANITIZE(%p) %-*d-> %s\n", \
-                        (CONST_CHARP (this) == NullPool) ? 0 : this, \
+                        (CONST_CHARP (this) == CONST_CHARP (&NullPool)) ? 0 : this, \
                         sanitize_depth, sanitize_depth, \
                         __PRETTY_FUNCTION__); \
        } HB_STMT_END
index 43f3d75..4561aa3 100644 (file)
@@ -44,7 +44,7 @@
        HB_STMT_START { \
            if (apply_depth < HB_DEBUG_APPLY) \
                fprintf (stderr, "APPLY(%p) %-*d-> %s\n", \
-                        (CONST_CHARP (this) == NullPool) ? 0 : this, \
+                        (CONST_CHARP (this) == CONST_CHARP (&NullPool)) ? 0 : this, \
                         apply_depth, apply_depth, \
                         __PRETTY_FUNCTION__); \
        } HB_STMT_END