projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a52b6
)
Fix "comparison between signed and unsigned" warnings
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 26 Feb 2013 04:57:51 +0000
(23:57 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 26 Feb 2013 04:57:51 +0000
(23:57 -0500)
Patch from Jonathan Kew.
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
b337ab7
..
cec7bd6
100644
(file)
--- a/
src/hb-open-type-private.hh
+++ b/
src/hb-open-type-private.hh
@@
-411,7
+411,7
@@
struct hb_serialize_context_t
template <typename Type>
inline Type *allocate_size (unsigned int size)
{
- if (unlikely (this->ran_out_of_room || this->end - this->head <
size
)) {
+ if (unlikely (this->ran_out_of_room || this->end - this->head <
ptrdiff_t (size)
)) {
this->ran_out_of_room = true;
return NULL;
}