PIString and PIChar fixes 2

This commit is contained in:
Andrey
2022-03-25 14:07:37 +03:00
parent 649850a1ba
commit 0ad6ca6602
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ ushort charFromCodepage(const char * c, int size, const char * codepage, int * t
ret = mbtowc(&wc, c, size);
//printf("mbtowc = %d\n", ret);
if (ret < 1) return 0;
return ushort(int(wc));
return ushort(wc);
# endif
#endif
return ushort(c[0]);