diff options
author | albert-github <albert.tests@gmail.com> | 2020-12-21 15:23:14 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-12-21 15:23:14 (GMT) |
commit | d333ed138dd5a6918f292c880f33af9695d03fbc (patch) | |
tree | 64a1d85d72f07749788075430296b8a9c54151e0 | |
parent | 1e72202d8fa0e9d2b3f2a29c88ec4f5790a0a4e2 (diff) | |
download | Doxygen-d333ed138dd5a6918f292c880f33af9695d03fbc.zip Doxygen-d333ed138dd5a6918f292c880f33af9695d03fbc.tar.gz Doxygen-d333ed138dd5a6918f292c880f33af9695d03fbc.tar.bz2 |
Remove warnings from util.cpp
Remove warnings from util.cpp (as done on other places as well):
```
...\src\util.cpp(3592): warning C4242: '=': conversion from 'int' to 'char', possible loss of data
...\src\util.cpp(3593): warning C4242: '=': conversion from 'int' to 'char', possible loss of data
```
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp index 3aa5863..6ba4d4d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -3588,9 +3588,9 @@ int getUtf8Char(const char *input,char ids[MAX_UTF8_CHAR_SIZE],CaseModifier modi { switch (modifier) { - case CaseModifier::None: ids[0]=*input; break; - case CaseModifier::ToUpper: ids[0]=toupper(*input); break; - case CaseModifier::ToLower: ids[0]=tolower(*input); break; + case CaseModifier::None: ids[0]=*input; break; + case CaseModifier::ToUpper: ids[0]=(char)toupper(*input); break; + case CaseModifier::ToLower: ids[0]=(char)tolower(*input); break; } l=1; // 0xxx.xxxx => normal single byte ascii character } |