mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 23:37:16 +00:00
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) {
|
if (tab->count < size >> 2 && size > 8) {
|
||||||
resize(vm, size >> 1);
|
resize(vm, size >> 1);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
resize(vm, tab->count + 4);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t be_strhash(const bstring *s)
|
uint32_t be_strhash(const bstring *s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user