always use unsigned
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 28 Oct 2006 11:27:10 +0000 (11:27 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 28 Oct 2006 11:27:10 +0000 (11:27 +0000)
lib/base/estring.cpp

index 18b277abac1a3cfd108f404f0338991d30126e1f..91491c381bddb6602bd6af9c1f0f3f2c2f31603a 100644 (file)
@@ -522,7 +522,7 @@ std::string convertLatin1UTF8(const std::string &string)
 
        while (i < len)
        {
-               unsigned long code=string[i++];
+               unsigned long code=(unsigned char)string[i++];
                                // Unicode->UTF8 encoding
                if (code < 0x80) // identity latin <-> utf8 mapping
                        res[t++]=char(code);