aboutsummaryrefslogtreecommitdiff
path: root/modules/permut.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/permut.c')
-rw-r--r--modules/permut.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/permut.c b/modules/permut.c
index e25d0cd..22da5dd 100644
--- a/modules/permut.c
+++ b/modules/permut.c
@@ -27,7 +27,7 @@
typedef struct permutctl
{
char c_type;
- int *c_permutationtable;
+ t_int *c_permutationtable;
int c_blocksize;
} t_permutctl;
@@ -59,7 +59,7 @@ static void permut_random(t_permut *x, t_floatarg seed)
int i,j;
int N = x->x_ctl.c_blocksize;
int mask = N-1;
- int *p = x->x_ctl.c_permutationtable;
+ t_int *p = x->x_ctl.c_permutationtable;
int r, last = 0;
//srand(* ((unsigned int *)(&seed)));
@@ -100,7 +100,7 @@ static void permut_resize_table(t_permut *x, int size)
{
if (x->x_ctl.c_permutationtable)
free(x->x_ctl.c_permutationtable);
- x->x_ctl.c_permutationtable = (int *)malloc(sizeof(int)*size);
+ x->x_ctl.c_permutationtable = (t_int *)malloc(sizeof(int)*size);
x->x_ctl.c_blocksize = size;
/* make sure it's initialized */