all repos — hex @ 89c2051d147bd86ea70c646adb175ed54f24b278

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

Fixed incorrecr implementation of <= symbol.
h3rald h3rald@h3rald.com
Sun, 22 Dec 2024 22:26:51 +0000
commit

89c2051d147bd86ea70c646adb175ed54f24b278

parent

03ccdf7988588085c6dc4a0607da66393c1409b8

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M scripts/test.hexscripts/test.hex

@@ -190,7 +190,7 @@ (("aaa" 0x5) ("aaa" 0x5 0x4) >= 0x0 ==)

;100 ((test "aaa") (test "aaa" 0x5) < 0x1 ==) - (("aaa" 0x5) ("" "aaa" 0x5) <= 0x0 ==) + (("aaa" 0x5) ("" "aaa" 0x5) <= 0x1 ==) (("a" "b" and) (error) try "[symbol and] Two integers required" ==) ((0x1 "a" or) (error) try "[symbol or] Two integers required" ==) ;104
M src/symbols.csrc/symbols.c

@@ -925,7 +925,7 @@ return 1;

} hex_item_t *pa = &a; hex_item_t *pb = &b; - hex_push_integer(ctx, !hex_greater(ctx, pb, pa, "<") || hex_equal(a, b)); + hex_push_integer(ctx, hex_greater(ctx, pb, pa, "<") || hex_equal(a, b)); return 0; }