From a259eb4efe78f0eec11b9fc7c0e8a9ced0dff7a3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 30 Sep 2009 01:47:49 -0400 Subject: [PATCH] Merged 998:974b90b56c43 from default branch: latin1-to-UTF8 fix. --- physfs_unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physfs_unicode.c b/physfs_unicode.c index 030bcc86..49be451a 100644 --- a/physfs_unicode.c +++ b/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); \ } \