summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-12 15:55:23 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-12 15:55:23 -0400
commit996eab4e5f35432692fc76939a2f586a1298c1da (patch)
tree145ff2b625364ca44b8e29785bbf6ad24f9ec6b0
parent4d5bd658c7b78392d24ad4cc82d800b6d0fc8434 (diff)
downloadpango-996eab4e5f35432692fc76939a2f586a1298c1da.tar.gz
[HB] Fixed signedness warnings
-rw-r--r--pango/opentype/hb-open-type-private.hh4
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 82e457b1..23bab7b4 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) && \