fix preprocessor directive bug in lib/atc
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user