all repos — hex @ 084859cbfa8fd0ac99d72e7615be036a585b1a7e

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Fixes.
Fabio Cevasco h3rald@h3rald.com
Wed, 01 Jan 2025 00:29:36 +0100
commit

084859cbfa8fd0ac99d72e7615be036a585b1a7e

parent

43596003fd2a6d4f13c971140b07ca2facfcdbeb

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/registry.csrc/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);