From 4ce208159b4425f0af910630e74940fb0b8747b4 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sat, 31 Dec 2005 19:31:09 +0000 Subject: fixed int vs t_int svn path=/trunk/externals/creb/; revision=4334 --- modules/permut.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/permut.c') 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 */ -- cgit v1.2.1