Skip to content
Snippets Groups Projects
Commit 63d9bbb1 authored by pokergaming's avatar pokergaming
Browse files

Fixed segfault due to author's oversight of difference between int and t_int on 64-bit systems

Patch put on tracker for Pd-extended, but I thought I'd go ahead and commit here, too
parent 402cda2a
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ static void permut_resize_table(t_permut *x, int size) ...@@ -111,7 +111,7 @@ static void permut_resize_table(t_permut *x, int size)
{ {
if (x->x_ctl.c_permutationtable) if (x->x_ctl.c_permutationtable)
free(x->x_ctl.c_permutationtable); free(x->x_ctl.c_permutationtable);
x->x_ctl.c_permutationtable = (t_int *)malloc(sizeof(int)*size); x->x_ctl.c_permutationtable = (t_int *)malloc(sizeof(t_int)*size);
x->x_ctl.c_blocksize = size; x->x_ctl.c_blocksize = size;
/* make sure it's initialized */ /* make sure it's initialized */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment