[asterisk-commits] mnicholson: trunk r303638 - /trunk/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 25 09:52:47 CST 2011


Author: mnicholson
Date: Tue Jan 25 09:52:42 2011
New Revision: 303638

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=303638
Log:
Use unsigned char in comparison for UTF8 check to quiet a compiler warning.

Modified:
    trunk/main/utils.c

Modified: trunk/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/utils.c?view=diff&rev=303638&r1=303637&r2=303638
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Tue Jan 25 09:52:42 2011
@@ -450,7 +450,7 @@
 		if (!(strchr(allow, *ptr))
 			&& !(*ptr >= '#' && *ptr <= '[') /* %x23 - %x5b */
 			&& !(*ptr >= ']' && *ptr <= '~') /* %x5d - %x7e */
-			&& !(*ptr > 0x7f)) {             /* UTF8-nonascii */
+			&& !((unsigned char) *ptr > 0x7f)) {             /* UTF8-nonascii */
 
 			if (out - outbuf >= buflen - 2) {
 				break;




More information about the asterisk-commits mailing list