Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Seems P6bigint.copy_to passed the arguments to mp_init_copy backwards…
… (not helped by the fact that it takes them the opposite way around to mp_copy). Sadly, this alone doesn't seem to fix the heap corruption.
  • Loading branch information
jnthn committed Mar 1, 2012
1 parent 00c5509 commit 9b2a92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/6model/reprs/P6bigint.c
Expand Up @@ -53,7 +53,7 @@ static void initialize(PARROT_INTERP, STable *st, void *data) {
static void copy_to(PARROT_INTERP, STable *st, void *src, void *dest) {
P6bigintBody *src_body = (P6bigintBody *)src;
P6bigintBody *dest_body = (P6bigintBody *)dest;
mp_init_copy(&src_body->i, &dest_body->i);
mp_init_copy(&dest_body->i, &src_body->i);
}

/* Used with boxing. Sets an integer value, for representations that can hold
Expand Down

0 comments on commit 9b2a92b

Please sign in to comment.