Made all string functions more aware of systems with reverse signed unsigned defaults
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2027
This commit is contained in:
parent
365b1a2e48
commit
4e69d3bf7a
2 changed files with 8 additions and 8 deletions
|
@ -51,12 +51,12 @@ Bits ConvDecWord(char * word);
|
|||
Bits ConvHexWord(char * word);
|
||||
|
||||
INLINE char * upcase(char * str) {
|
||||
for (char* idx = str; *idx ; idx++) *idx = toupper(*idx);
|
||||
for (char* idx = str; *idx ; idx++) *idx = toupper(*reinterpret_cast<unsigned char*>(idx));
|
||||
return str;
|
||||
}
|
||||
|
||||
INLINE char * lowcase(char * str) {
|
||||
for(char* idx = str; *idx ; idx++) *idx = tolower(*idx);
|
||||
for(char* idx = str; *idx ; idx++) *idx = tolower(*reinterpret_cast<unsigned char*>(idx));
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue