From 5ccf1ba339d6ffb4469f1c4f20d8d8d00012c857 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 12 Aug 2009 15:55:23 -0400 Subject: [PATCH] [HB] Fixed signedness warnings --- src/hb-open-type-private.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 82e457b..23bab7b 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -210,8 +210,8 @@ _hb_sanitize_edit (hb_sanitize_context_t *context, /* TODO Optimize this if L is fixed (gcc magic) */ #define SANITIZE_MEM(B,L) \ HB_LIKELY (context->start <= CONST_CHARP(B) && \ - CONST_CHARP(B) < context->end && \ - context->end - CONST_CHARP(B) >= (L)) + CONST_CHARP(B) <= context->end && \ + (unsigned int) (context->end - CONST_CHARP(B)) >= (unsigned int) (L)) #define NEUTER(Var, Val) \ (SANITIZE_OBJ (Var) && \ -- 2.7.4