From 36d0fbbc52bdf2c71da022fb1fdc31eca17078ce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 31 Jul 2018 01:15:04 -0700 Subject: [PATCH] [shaper] Remove a macro --- src/hb-shaper-private.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-shaper-private.hh b/src/hb-shaper-private.hh index 8f86b4eb5..c93b0e046 100644 --- a/src/hb-shaper-private.hh +++ b/src/hb-shaper-private.hh @@ -60,10 +60,8 @@ struct hb_shaper_data_t { /* Means: succeeded, but don't need to keep any data. */ #define HB_SHAPER_DATA_SUCCEEDED ((void *) +1) - /* Means: tried but failed to create. */ #define HB_SHAPER_DATA_INVALID ((void *) -1) -#define HB_SHAPER_DATA_IS_INVALID(data) ((void *) (data) == HB_SHAPER_DATA_INVALID) #define HB_SHAPER_DATA_TYPE_NAME(shaper, object) hb_##shaper##_shaper_##object##_data_t #define HB_SHAPER_DATA_TYPE(shaper, object) struct HB_SHAPER_DATA_TYPE_NAME(shaper, object) @@ -121,7 +119,7 @@ HB_SHAPER_DATA_ENSURE_FUNC(shaper, object) (hb_##object##_t *object) \ goto retry; \ } \ } \ - return data != nullptr && !HB_SHAPER_DATA_IS_INVALID (data); \ + return data != nullptr && (void *) data != HB_SHAPER_DATA_INVALID; \ }