Skip to content

Commit

Permalink
Make if statement in adjust_nursery() more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Mar 29, 2017
1 parent 3a433d4 commit 8be688b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/bigintops.c
Expand Up @@ -13,7 +13,7 @@ MVM_STATIC_INLINE void adjust_nursery(MVMThreadContext *tc, MVMP6bigintBody *bod
if (MVM_BIGINT_IS_BIG(body)) {
int used = USED(body->u.bigint);
int adjustment = MIN(used, 32768) & ~0x7;
if (adjustment && (((char *)(tc->nursery_alloc_limit) - adjustment) > tc->nursery_alloc)) {
if (adjustment && (char *)tc->nursery_alloc_limit - adjustment > tc->nursery_alloc) {
tc->nursery_alloc_limit = (char *)(tc->nursery_alloc_limit) - adjustment;
}
}
Expand Down

0 comments on commit 8be688b

Please sign in to comment.