Skip to content

Commit

Permalink
Fixed latin1 to UTF-8 conversion (sign conversion was broken).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 3, 2009
1 parent 04b6388 commit 5323b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs_unicode.c
Expand Up @@ -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); \
} \
Expand Down

0 comments on commit 5323b6a

Please sign in to comment.