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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user