Fix build for VC10

This commit is contained in:
Maksim Shabunin 2015-03-27 12:15:26 +03:00
parent 77cbddf715
commit fab2a947ca

View File

@ -1631,7 +1631,7 @@ static inline void sacInitNonRand(double beta,
for(; n < N; n++){ for(; n < N; n++){
double mu = n * beta; double mu = n * beta;
double sigma = sqrt(n)* beta_beta1_sq_chi; double sigma = sqrt((double)n)* beta_beta1_sq_chi;
unsigned i_min = (unsigned)ceil(SMPL_SIZE + mu + sigma); unsigned i_min = (unsigned)ceil(SMPL_SIZE + mu + sigma);
nonRandMinInl[n] = i_min; nonRandMinInl[n] = i_min;