From 7219ed62260dc7a23e7f586df6be6f93f1265f0e Mon Sep 17 00:00:00 2001 From: CrystalPT Date: Sat, 25 Sep 2010 08:56:59 +0000 Subject: [WIN32] fixed: don't trip ASSERT in c runtime - a character is 0->255 not -127->127 git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@34174 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- lib/libmodplug/src/load_abc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libmodplug') diff --git a/lib/libmodplug/src/load_abc.cpp b/lib/libmodplug/src/load_abc.cpp index 448b26ac82..fd708578bb 100644 --- a/lib/libmodplug/src/load_abc.cpp +++ b/lib/libmodplug/src/load_abc.cpp @@ -275,7 +275,7 @@ static void setenv(const char *name, const char *value, int overwrite) #endif -static int abc_isvalidchar(char c) { +static int abc_isvalidchar(unsigned char c) { return(isalpha(c) || isdigit(c) || isspace(c) || c == '%' || c == ':'); } -- cgit v1.2.3