aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-xsrc/survive_cal.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c
index 985ab24..0eb9446 100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -18,6 +18,10 @@
#include "survive_config.h"
+#ifdef WINDOWS
+int mkdir(const char *);
+#endif
+
#define PTS_BEFORE_COMMON 32
#define NEEDED_COMMON_POINTS 10
#define MIN_SENSORS_VISIBLE_PER_LH_FOR_CAL 4
@@ -455,7 +459,7 @@ static void handle_calibration( struct SurviveCalData *cd )
stddevang += Sdiff2;
stddevlen += Ldiff2;
- int llm = Sdiff / HISTOGRAMBINANG + (HISTOGRAMSIZE/2.0);
+ int llm = (int)( Sdiff / HISTOGRAMBINANG + (HISTOGRAMSIZE/2.0) );
if( llm < 0 ) llm = 0;
if( llm >= HISTOGRAMSIZE ) llm = HISTOGRAMSIZE-1;