projects
/
apps
/
core
/
preloaded
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f713291
)
[HB] Fixed signedness warnings
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 12 Aug 2009 19:55:23 +0000
(15:55 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 2 Nov 2009 19:40:41 +0000
(14:40 -0500)
src/hb-open-type-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-open-type-private.hh
b/src/hb-open-type-private.hh
index
82e457b
..
23bab7b
100644
(file)
--- 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) && \