[Freeswitch-trunk] [commit] r12455 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Wed Mar 4 22:00:36 PST 2009


Author: mrene
Date: Thu Mar  5 00:00:36 2009
New Revision: 12455

Log:
I like casts

Modified:
   freeswitch/trunk/src/switch_xml_config.c

Modified: freeswitch/trunk/src/switch_xml_config.c
==============================================================================
--- freeswitch/trunk/src/switch_xml_config.c	(original)
+++ freeswitch/trunk/src/switch_xml_config.c	Thu Mar  5 00:00:36 2009
@@ -160,7 +160,7 @@
 				{
 					int32_t *dest = (int32_t*)item->ptr;
 					int index = (int)(intptr_t)item->data;
-					int8_t currentval = !!(*dest & index);
+					int8_t currentval = (int8_t)!!(*dest & index);
 					int8_t newval = 0;
 					
 					if (value) {



More information about the Freeswitch-trunk mailing list