]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix Solaris build
authorMathieu Rene <mrene@avgs.ca>
Mon, 30 Mar 2009 17:48:25 +0000 (17:48 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 30 Mar 2009 17:48:25 +0000 (17:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12842 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml_config.c

index 6915e41999dc578cc6c65555dfc83df2dbfe01b4..44266707b0f8dbea466915492fd606ba6aebbb13 100644 (file)
@@ -336,7 +336,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
                        case SWITCH_CONFIG_FLAGARRAY:
                                {
                                        int8_t *dest = (int8_t*)item->ptr;
-                                       int8_t index = (int8_t)(intptr_t)item->data;
+                                       unsigned int index = (unsigned int)(intptr_t)item->data;
                                        int8_t newval = value ? !!switch_true(value) : (int8_t)((intptr_t)item->defaultvalue);
                                        if (dest[index] != newval) {
                                                changed = SWITCH_TRUE;