diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-09-14 22:02:00 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-09-14 22:02:00 +0400 |
commit | 735249e9bb2b3980e60f62b6fe26f8ad87a8eb51 (patch) | |
tree | 7c92c39ed16f9a28583c9a1bc7c882f34d894b97 /backgraph.c | |
parent | be7a66beafa068dd037340061de0b62416b8d9db (diff) | |
download | bdwgc-735249e9bb2b3980e60f62b6fe26f8ad87a8eb51.tar.gz |
Resolve "comparison of signed and unsigned values" compiler warning.
* backgraph.c (per_object_helper): Cast "i" local variable to word
(instead of "sz") in a comparison.
Diffstat (limited to 'backgraph.c')
-rw-r--r-- | backgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backgraph.c b/backgraph.c index 04259f19..67e0b371 100644 --- a/backgraph.c +++ b/backgraph.c @@ -275,7 +275,7 @@ static void per_object_helper(struct hblk *h, word fn) do { f((ptr_t)(h -> hb_body + i), sz, descr); i += (int)sz; - } while (i + (int)sz <= BYTES_TO_WORDS(HBLKSIZE)); + } while ((word)i + sz <= BYTES_TO_WORDS(HBLKSIZE)); } GC_INLINE void GC_apply_to_each_object(per_object_func f) |