src/physfs_unicode.c
changeset 1092 12c87d886a75
parent 1016 957c97389257
child 1093 738b2ee912b9
equal deleted inserted replaced
1091:0a103bf74f1c 1092:12c87d886a75
   303     *_dst = dst;
   303     *_dst = dst;
   304     *_len = len;
   304     *_len = len;
   305 } /* utf8fromcodepoint */
   305 } /* utf8fromcodepoint */
   306 
   306 
   307 #define UTF8FROMTYPE(typ, src, dst, len) \
   307 #define UTF8FROMTYPE(typ, src, dst, len) \
       
   308     if (len == 0) return; \
   308     len--;  \
   309     len--;  \
   309     while (len) \
   310     while (len) \
   310     { \
   311     { \
   311         const PHYSFS_uint32 cp = (PHYSFS_uint32) ((typ) (*(src++))); \
   312         const PHYSFS_uint32 cp = (PHYSFS_uint32) ((typ) (*(src++))); \
   312         if (cp == 0) break; \
   313         if (cp == 0) break; \