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;
#ifdef _WIN32
double *dargs = (double *) _alloca(sizeof(double) * narg);
#endif
#else
double *dargs = (double *) alloca(sizeof(double) * narg);
#endif
for (int i = 0; i < narg; ++i) dargs[i] = atof(args[i+1]);
return function(type, narg, dargs);
}