Skip to content

Commit e247fe1

Browse files
No functional change but avoids confusion between integer and floating point operations
1 parent d558279 commit e247fe1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rtkpos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ static int resamb_LAMBDA(rtk_t *rtk, double *bias, double *xa,int gps,int glo,in
17601760
/* generate adjusted AR ratio based on # of sat pairs */
17611761
rtk->sol.thres = coeff[0];
17621762
for (i=1;i<3;i++) {
1763-
rtk->sol.thres = rtk->sol.thres*1/(nb1+1)+coeff[i];
1763+
rtk->sol.thres = rtk->sol.thres*1.0/(nb1+1.0)+coeff[i];
17641764
}
17651765
rtk->sol.thres = MIN(MAX(rtk->sol.thres,opt->thresar[5]),opt->thresar[6]);
17661766
} else

0 commit comments

Comments
 (0)