Skip to content

Commit

Permalink
rc: correct type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jul 4, 2024
1 parent 14fff31 commit 23a3c8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bld/rc/rc/c/unitable.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static size_t UTF8StringToMultiByte( size_t len, const char *str, char *buf )
ret++;
}
}
u = (char)p->s;
u = (unsigned char)p->s;
}
}
if( ret < len ) {
Expand All @@ -174,7 +174,7 @@ static size_t UTF8StringToCP1252( size_t len, const char *str, char *buf )
size_t ret;
unsigned short u;
size_t i;
char c;
unsigned char c;

ret = 0;
for( i = 0; i < len; i++ ) {
Expand All @@ -184,7 +184,7 @@ static size_t UTF8StringToCP1252( size_t len, const char *str, char *buf )
/*
* UNICODE to CP1252
*/
c = (char)unicode_to_latin1( u );
c = (unsigned char)unicode_to_latin1( u );
if( c != 0 ) {
u = c;
}
Expand Down

0 comments on commit 23a3c8b

Please sign in to comment.