mirror of https://github.com/arendst/Tasmota.git
Berry strtab test case (#18623)
This commit is contained in:
parent
be27b4c488
commit
fec3a21c8a
|
@ -268,9 +268,13 @@ void be_gcstrtab(bvm *vm)
|
|||
}
|
||||
}
|
||||
}
|
||||
#if BE_USE_DEBUG_GC == 0
|
||||
if (tab->count < size >> 2 && size > 8) {
|
||||
resize(vm, size >> 1);
|
||||
}
|
||||
#else
|
||||
resize(vm, tab->count + 4);
|
||||
#endif
|
||||
}
|
||||
|
||||
uint32_t be_strhash(const bstring *s)
|
||||
|
|
Loading…
Reference in New Issue