fix preprocessor directive bug in lib/atc

This commit is contained in:
Axel Kohlmeyer
2018-05-21 16:48:40 -04:00
parent f5b7419108
commit 4ec31564fe

View File

@ -63,11 +63,11 @@ namespace ATC {
int narg = nargs -1; int narg = nargs -1;
#ifdef _WIN32 #ifdef _WIN32
double *dargs = (double *) _alloca(sizeof(double) * narg); double *dargs = (double *) _alloca(sizeof(double) * narg);
#endif #else
double *dargs = (double *) alloca(sizeof(double) * narg); double *dargs = (double *) alloca(sizeof(double) * narg);
#endif #endif
for (int i = 0; i < narg; ++i) dargs[i] = atof(args[i+1]); for (int i = 0; i < narg; ++i) dargs[i] = atof(args[i+1]);
return function(type, narg, dargs); return function(type, narg, dargs);
} }