commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r809370 - /commons/sandbox/runtime/trunk/src/main/native/srclib/regex/regex2.h
Date Sun, 30 Aug 2009 16:20:24 GMT
Author: mturk
Date: Sun Aug 30 16:20:24 2009
New Revision: 809370

URL: http://svn.apache.org/viewvc?rev=809370&view=rev
Log:
Cast to unsigne char when ever doing any is function

Modified:
    commons/sandbox/runtime/trunk/src/main/native/srclib/regex/regex2.h

Modified: commons/sandbox/runtime/trunk/src/main/native/srclib/regex/regex2.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/srclib/regex/regex2.h?rev=809370&r1=809369&r2=809370&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/srclib/regex/regex2.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/srclib/regex/regex2.h Sun Aug 30 16:20:24
2009
@@ -134,4 +134,4 @@
 #undef OUT
 /* misc utilities */
 #define	OUT	(CHAR_MAX+1)	/* a non-character value */
-#define	ISWORD(c)	(isalnum(c) || (c) == '_')
+#define	ISWORD(c)	(isalnum((unsigned char)(c)) || (c) == '_')



Mime
View raw message