charsets: use G_N_ELEMENTS (t)' instead of sizeof (t) / sizeof (t[0])'

This commit is contained in:
Ben Chan
2019-08-02 19:58:01 -07:00
parent c61bd846f3
commit c363c59840
+1 -1
View File
@@ -541,7 +541,7 @@ pccp437_is_subset (gunichar c, const char *utf8, gsize ulen)
if (c <= 0x7F)
return TRUE;
for (i = 0; i < sizeof (t) / sizeof (t[0]); i++) {
for (i = 0; i < G_N_ELEMENTS (t); i++) {
if (c == t[i])
return TRUE;
}