eval: Reorder checks in var_shada_iter

This commit is contained in:
ZyX 2015-08-17 20:53:50 +03:00
parent c57c569000
commit aa4d0bb728

View File

@ -20903,9 +20903,9 @@ const void *var_shada_iter(const void *const iter, const char **const name,
*name = NULL; *name = NULL;
if (iter == NULL) { if (iter == NULL) {
hi = globvarht.ht_array; hi = globvarht.ht_array;
while ((HASHITEM_EMPTY(hi) while ((size_t) (hi - hifirst) < hinum
|| var_flavour(HI2DI(hi)->di_key) != VAR_FLAVOUR_SHADA) && (HASHITEM_EMPTY(hi)
&& (size_t) (hi - hifirst) < hinum) { || var_flavour(HI2DI(hi)->di_key) != VAR_FLAVOUR_SHADA)) {
hi++; hi++;
} }
if (HASHITEM_EMPTY(hi) if (HASHITEM_EMPTY(hi)