提交 2c105f6c authored 作者: Michael Jerris's avatar Michael Jerris

fix build errors one windows and correct var types (FSBUILD-225)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16112 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c70f4a20
...@@ -69,7 +69,7 @@ static int MATRIX = 1; ...@@ -69,7 +69,7 @@ static int MATRIX = 1;
static int STEP_MS = 10; static int STEP_MS = 10;
static int STEP_MIC = 10000; static int STEP_MIC = 10000;
static int TICK_PER_SEC = 100; static uint32_t TICK_PER_SEC = 100;
static int MS_PER_TICK = 10; static int MS_PER_TICK = 10;
...@@ -185,7 +185,7 @@ static void calibrate_clock(void) ...@@ -185,7 +185,7 @@ static void calibrate_clock(void)
for (x = 0; x < 500; x++) { for (x = 0; x < 500; x++) {
avg = average_time(val, 100); avg = average_time(val, 100);
if (abs(want - avg) <= 2) { if (abs((int)(want - avg)) <= 2) {
if (++good > 10) { if (++good > 10) {
break; break;
} }
...@@ -198,7 +198,7 @@ static void calibrate_clock(void) ...@@ -198,7 +198,7 @@ static void calibrate_clock(void)
} }
} }
OFFSET = want - val; OFFSET = (int)(want - val);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论