test_stl: fix C90 compilation error

This commit is contained in:
Hugues Delorme 2016-07-05 14:28:38 +02:00
parent 09d2daf015
commit 058db6cb4d

View File

@ -384,8 +384,11 @@ static const char* test_stla_lc_numeric()
fprintf(stderr, "\nskip: default locale is NULL or already C/POSIX");
}
gmio_lc_numeric_restore();
for (size_t i = 0; i < GMIO_ARRAY_SIZE(error); ++i) {
UTEST_COMPARE_INT(GMIO_ERROR_BAD_LC_NUMERIC, error[i]);
{
size_t i = 0;
for (; i < GMIO_ARRAY_SIZE(error); ++i) {
UTEST_COMPARE_INT(GMIO_ERROR_BAD_LC_NUMERIC, error[i]);
}
}
return NULL;