提交 c4a27ead authored 作者: Mathieu Rene's avatar Mathieu Rene

I like casts

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12455 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c8fc7dd8
...@@ -160,7 +160,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse(switch_xml_t xml, int re ...@@ -160,7 +160,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse(switch_xml_t xml, int re
{ {
int32_t *dest = (int32_t*)item->ptr; int32_t *dest = (int32_t*)item->ptr;
int index = (int)(intptr_t)item->data; int index = (int)(intptr_t)item->data;
int8_t currentval = !!(*dest & index); int8_t currentval = (int8_t)!!(*dest & index);
int8_t newval = 0; int8_t newval = 0;
if (value) { if (value) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论