Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…unsigned type.
  • Loading branch information...
commit ab7ec2a1408438dbd1d334673be97cd6b35f3d92 1 parent 60b1bf5
Martin Vorländer authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/hash.c
View
3  src/hash.c
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.