Skip to content

Commit

Permalink
Fix a bug that causes parrot to fail on platforms where size_t is an …
Browse files Browse the repository at this point in the history
…unsigned type.
  • Loading branch information
Martin Vorländer committed Oct 3, 2012
1 parent 60b1bf5 commit ab7ec2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hash.c
Expand Up @@ -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
Expand Down

0 comments on commit ab7ec2a

Please sign in to comment.