src/physfs_unicode.c
changeset 998 974b90b56c43
parent 986 e69d37f80ce2
child 1016 957c97389257
--- a/src/physfs_unicode.c	Sun May 03 01:36:18 2009 -0700
+++ b/src/physfs_unicode.c	Wed Jun 03 18:44:15 2009 -0400
@@ -308,7 +308,7 @@
     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); \
     } \