aboutsummaryrefslogtreecommitdiff
path: root/src/mtx_spherical_harmonics.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2012-02-22 11:26:39 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2012-02-22 11:26:39 +0000
commit04f532cbafb61361711acb8d3f327eabf2068c44 (patch)
tree9b9e725115bd948d508fb8d04547e0bb1e762d5b /src/mtx_spherical_harmonics.c
parent745d3854c794984825a4bfe7645f52e901b56c1c (diff)
fixes to make it compile on MSVC
svn path=/trunk/externals/iem/iemmatrix/; revision=16023
Diffstat (limited to 'src/mtx_spherical_harmonics.c')
-rw-r--r--src/mtx_spherical_harmonics.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mtx_spherical_harmonics.c b/src/mtx_spherical_harmonics.c
index 8ecc9a4..cec8629 100644
--- a/src/mtx_spherical_harmonics.c
+++ b/src/mtx_spherical_harmonics.c
@@ -105,7 +105,7 @@ static void mTXShMatrix (MTXSh *x, t_symbol *s,
int columns = atom_getint (argv++);
int size = rows * columns;
int in_size = argc-2;
- int n;
+ unsigned int n;
/* size check */
@@ -127,6 +127,7 @@ static void mTXShMatrix (MTXSh *x, t_symbol *s,
}
if (x->ws!=0) {
+ int n;
sharmonics(x->phi, x->theta, x->ws);
in_size=x->l*(x->nmax+1)*(x->nmax+1);
SETFLOAT(x->list_sh,(float)x->l);
@@ -192,7 +193,7 @@ static void mTXChMatrix (MTXCh *x, t_symbol *s,
int columns = atom_getint (argv++);
int size = rows * columns;
int in_size = argc-2;
- int n;
+ unsigned int n;
/* size check */
@@ -213,6 +214,7 @@ static void mTXChMatrix (MTXCh *x, t_symbol *s,
}
if (x->wc!=0) {
+ int n;
chebyshev12(x->phi, x->wc);
in_size=x->l*(2*x->nmax+1);
SETFLOAT(x->list_ch,(float)x->l);