Permalink
Browse files

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

…unsigned type.
  • Loading branch information...
1 parent 60b1bf5 commit ab7ec2a1408438dbd1d334673be97cd6b35f3d92 Martin Vorländer committed 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 ab7ec2a

Please sign in to comment.