Cast away a warning under OpenBSD 7.0

This commit is contained in:
Rene Kita
2021-12-26 13:35:29 +01:00
parent bf40283a80
commit 5b33d9f239

View File

@@ -181,7 +181,7 @@ push_symbol(Str str, char symbol, int width, int n)
#endif
p = alt_symbol[(unsigned char)symbol % N_SYMBOL];
for (i = 0; i < 2 && *p; i++, p++)
buf[i] = (*p == ' ') ? NBSP_CODE : *p;
buf[i] = (*p == ' ') ? (char)NBSP_CODE : *p;
Strcat(str, Sprintf("<_SYMBOL TYPE=%d>", symbol));
for (; n > 0; n--)