From: plugd Date: Fri, 12 Nov 2021 13:50:55 +0000 (+0100) Subject: Fixed bug in global variable referencing. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=62939b4c71fc96810a2c1f9c51a5f033d053a5a8;p=ez.git Fixed bug in global variable referencing. --- diff --git a/ez.el b/ez.el index 67e9caf..4ec4346 100644 --- a/ez.el +++ b/ez.el @@ -99,10 +99,10 @@ ;; Global variables (defun ez-get-global-var (gvar) - (ez-mem-ref-word (+ (* 2 gvar) (ez-mem-ref-word ez-globalvartab-addr)))) + (ez-mem-ref-word (+ (* 2 gvar) ez-globalvartab-addr))) (defun ez-set-global-var (gvar val) - (ez-mem-set-word (+ (* 2 gvar) (ez-mem-ref-word ez-globalvartab-addr)) val)) + (ez-mem-set-word (+ (* 2 gvar) ez-globalvartab-addr) val)) ;; Object tree