1
0
mirror of https://github.com/deadw00d/AROS.git synced 2026-03-16 22:08:37 +00:00

dont put initial declaration inside the loop

This commit is contained in:
Kalamatee
2025-06-19 18:58:30 +01:00
committed by deadwood
parent 85cca2f02a
commit 7e14e6b570

View File

@ -140,7 +140,9 @@ __header_inline int wcwidth(wchar_t wc) {
__header_inline int wcswidth(const wchar_t *pwcs, size_t n) {
int width = 0;
for (size_t i = 0; i < n && pwcs[i] != L'\0'; ++i) {
size_t i;
for (i = 0; i < n && pwcs[i] != L'\0'; ++i) {
int w = wcwidth(pwcs[i]);
if (w < 0)
return -1;