mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
fix warnings to allow compiling with -O3
This commit is contained in:
parent
dc7e18ec73
commit
8f2a22b8c3
1 changed files with 2 additions and 2 deletions
4
utf8.c
4
utf8.c
|
@ -198,7 +198,7 @@ uchar_t u8_getchar(const char *_s, const char **_end)
|
|||
|
||||
if (!u8_analyze(_s, &st, &ln, &ch, 0x10))
|
||||
ch = 0;
|
||||
if (_end)
|
||||
else if (_end)
|
||||
*_end = _s + st + ln;
|
||||
return ch;
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ uchar_t u8_getnchar(const char *_s, const char **_end, size_t _maxlen)
|
|||
|
||||
if (!u8_analyze(_s, &st, &ln, &ch, _maxlen))
|
||||
ch = 0;
|
||||
if (_end)
|
||||
else if (_end)
|
||||
*_end = _s + st + ln;
|
||||
return ch;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue