提交 89f7196a authored 作者: Kathleen King's avatar Kathleen King

Fixed trucation of value warning.

There was a parameter mismatch between abs(), which expects an int,
and atol() which returns a long. Since max_drift is defined as an int,
there is no need to pars q as a long rather than an int.
上级 39200cd1
...@@ -7654,7 +7654,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se ...@@ -7654,7 +7654,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se
maxlen = atol(p); maxlen = atol(p);
if ((q = strchr(p, ':'))) { if ((q = strchr(p, ':'))) {
q++; q++;
max_drift = abs(atol(q)); max_drift = abs(atoi(q));
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论