Skip to content
Browse files

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...
1 parent 00c5509 commit 9b2a92b913a941c793d77f84e1b4d0a8631337a6 @jnthn jnthn committed Mar 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/6model/reprs/P6bigint.c
2 src/6model/reprs/P6bigint.c
@@ -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

0 comments on commit 9b2a92b

Please sign in to comment.
Something went wrong with that request. Please try again.