Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug that causes parrot to fail on platforms where size_t is an unsigned type. #854

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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