Fixes.
Fabio Cevasco h3rald@h3rald.com
Wed, 01 Jan 2025 00:29:36 +0100
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
src/registry.c
→
src/registry.c
@@ -136,6 +136,12 @@ hex_error(ctx, "[set symbol] Invalid user symbol %s", key);
return 1; } + if (!native && hex_valid_native_symbol(ctx, key) + { + hex_error(ctx, "[set symbol] Cannot overwrite native symbol '%s'", key); + return 1; + } + if ((float)registry->size / registry->bucket_count > 0.75) { hex_registry_resize(ctx);