Bläddra i källkod

Merged 998:974b90b56c43 from default branch: latin1-to-UTF8 fix.

Ryan C. Gordon 16 år sedan
förälder
incheckning
a259eb4efe
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      physfs_unicode.c

+ 1 - 1
physfs_unicode.c

@@ -308,7 +308,7 @@ static void utf8fromcodepoint(PHYSFS_uint32 cp, char **_dst, PHYSFS_uint64 *_len
     len--;  \
     while (len) \
     { \
-        const PHYSFS_uint32 cp = (PHYSFS_uint32) *(src++); \
+        const PHYSFS_uint32 cp = (PHYSFS_uint32) ((typ) (*(src++))); \
         if (cp == 0) break; \
         utf8fromcodepoint(cp, &dst, &len); \
     } \