[pango] [HB] Fixed signedness warnings



commit 996eab4e5f35432692fc76939a2f586a1298c1da
Author: Behdad Esfahbod <behdad behdad org>
Date:   Wed Aug 12 15:55:23 2009 -0400

    [HB] Fixed signedness warnings

 pango/opentype/hb-open-type-private.hh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh
index 82e457b..23bab7b 100644
--- a/pango/opentype/hb-open-type-private.hh
+++ b/pango/opentype/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) && \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]