Permalink
Browse files

Fix a bug that causes parrot to fail on platforms where size_t is an …

…unsigned type.

Signed-off-by: Reini Urban <rurban@cpanel.net>
  • Loading branch information...
1 parent 87ac5ce commit fedbe5e03c912b2ef32a5894051202b8a6ca21aa Martin Vorländer committed with rurban Oct 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/hash.c
View
@@ -850,7 +850,8 @@ expand_hash(PARROT_INTERP, ARGMOD(Hash *hash))
const UINTVAL old_size = hash->mask + 1;
const UINTVAL new_size = old_size << 1; /* Double. Right-shift is 2x */
const UINTVAL new_mask = new_size - 1;
- size_t offset, i;
+ size_t i;
+ ptrdiff_t offset;
/*
allocate some less buckets

0 comments on commit fedbe5e

Please sign in to comment.