]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorMathieu Rene <mrene@avgs.ca>
Thu, 5 Mar 2009 05:45:42 +0000 (05:45 +0000)
committerMathieu Rene <mrene@avgs.ca>
Thu, 5 Mar 2009 05:45:42 +0000 (05:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12450 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml_config.c

index 6ec7ee3228025e7aeb092dc3e036a83ec773805e..452bb68a4080c77e2ec9c0276468d18de7e9a8cd 100644 (file)
@@ -181,7 +181,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse(switch_xml_t xml, int re
                        case SWITCH_CONFIG_FLAGARRAY:
                                {
                                        int8_t *dest = (int8_t*)item->ptr;
-                                       int8_t index = (int)(intptr_t)item->data;
+                                       int8_t index = (int8_t)(intptr_t)item->data;
                                        int8_t newval = value ? !!switch_true(value) : (int8_t)((intptr_t)item->defaultvalue);
                                        if (dest[index] != newval) {
                                                changed = SWITCH_TRUE;