diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2002-10-21 16:39:55 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2002-10-21 16:39:55 +0000 |
commit | 4204503294c1ae1dce526558d0b21458d3d6cd18 (patch) | |
tree | 102814eba4ddd2eb1ac3eecfc3be1613a4f830b3 | |
parent | 77505c8c27e7c736cda740e6b0e63f3a06248ed4 (diff) |
fixed build errors
svn path=/trunk/externals/zexy/; revision=183
-rw-r--r-- | src/z_urn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/z_urn.c b/src/z_urn.c index 961baab..3376106 100644 --- a/src/z_urn.c +++ b/src/z_urn.c @@ -32,7 +32,7 @@ static int makeseed(void) static void urn_clear(t_urn *x) { unsigned int i=x->x_range; - t_int *dummy=x->x_state; + t_int *dummy=(t_int*)x->x_state; while(i--)*dummy++=0; x->x_count=0; } @@ -54,8 +54,8 @@ static void makestate(t_urn *x, unsigned int newrange) static void urn_bang(t_urn *x) { - int range = (x->x_range<1?:1:x->x_range); - unsigned int randval = x->x_state; + unsigned int range = (x->x_range<1?1:x->x_range); + unsigned int randval = (unsigned int)x->x_state; int nval, used=1; @@ -107,7 +107,7 @@ static void urn_setup(void) class_addbang (urn_class, urn_bang); class_addmethod(urn_class, (t_method)urn_clear, gensym("clear"), 0); - class_addmehtod(urn_class, (t_method)urn_flt2, gensym(""), A_DEFFLOAT, 0); + class_addmethod(urn_class, (t_method)urn_flt2, gensym(""), A_DEFFLOAT, 0); class_addmethod(urn_class, (t_method)urn_seed, gensym("seed"), A_DEFFLOAT, 0); |