Merged 998:974b90b56c43 from default branch: latin1-to-UTF8 fix. stable-2.0
authorRyan C. Gordon <icculus@icculus.org>
Wed, 30 Sep 2009 01:47:49 -0400
branchstable-2.0
changeset 1014 2a649b61434c
parent 1013 d0a87845e580
child 1019 366e2b2e6fa5
Merged 998:974b90b56c43 from default branch: latin1-to-UTF8 fix.
physfs_unicode.c
--- a/physfs_unicode.c	Sun Sep 06 01:06:14 2009 -0400
+++ b/physfs_unicode.c	Wed Sep 30 01:47:49 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); \
     } \