Skip to content

Commit 54ccc73

Browse files
committed
Only unsigned values can be passed to the isspace function.
1 parent 0394afc commit 54ccc73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrGame/ui/UILines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void CUILines::ParseText(bool force)
210210
{
211211
bool b_last_ch = (idx == sub_len - 1);
212212

213-
if (isspace(sbl.m_text[idx]))
213+
if (isspace((unsigned char)sbl.m_text[idx]))
214214
last_space_idx = idx;
215215

216216
float w1 = get_str_width(m_pFont, sbl.m_text[idx]);

0 commit comments

Comments
 (0)