aboutsummaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-10-30 14:25:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-10-30 14:25:59 -0300
commit43c8e5bded052801f54a7439d18933b83570eb82 (patch)
tree97f6d1e020110e14c798537c7bbb1f90feed4044 /lvm.h
parentb8b709b6d40c5c18d9b8ef33bb50afc55f048ab8 (diff)
downloadlua-43c8e5bded052801f54a7439d18933b83570eb82.tar.gz
lua-43c8e5bded052801f54a7439d18933b83570eb82.tar.bz2
lua-43c8e5bded052801f54a7439d18933b83570eb82.zip
Full abstraction for representation of array values
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.h b/lvm.h
index 8808c942..32455fba 100644
--- a/lvm.h
+++ b/lvm.h
@@ -92,7 +92,7 @@ typedef enum {
92 if ((u - 1u < h->alimit)) { \ 92 if ((u - 1u < h->alimit)) { \
93 int tag = *getArrTag(h,u); \ 93 int tag = *getArrTag(h,u); \
94 if (tagisempty(tag)) aux = HNOTFOUND; \ 94 if (tagisempty(tag)) aux = HNOTFOUND; \
95 else { arr2val(h, u, tag, res); aux = HOK; }} \ 95 else { farr2val(h, u, tag, res); aux = HOK; }} \
96 else { aux = luaH_getint(h, u, res); }} 96 else { aux = luaH_getint(h, u, res); }}
97 97
98 98
@@ -105,7 +105,7 @@ typedef enum {
105 if ((u - 1u < h->alimit)) { \ 105 if ((u - 1u < h->alimit)) { \
106 lu_byte *tag = getArrTag(h,u); \ 106 lu_byte *tag = getArrTag(h,u); \
107 if (tagisempty(*tag)) aux = ~cast_int(u); \ 107 if (tagisempty(*tag)) aux = ~cast_int(u); \
108 else { val2arr(h, u, tag, val); aux = HOK; }} \ 108 else { fval2arr(h, u, tag, val); aux = HOK; }} \
109 else { aux = luaH_psetint(h, u, val); }} 109 else { aux = luaH_psetint(h, u, val); }}
110 110
111 111