summaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-09-19 15:03:12 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-09-19 15:03:12 -0700
commitf5a213ec39cc6c19c4836d5aaca1573560e45884 (patch)
tree88776dc2457cae24be3bf73ea48d1e10bc3d387b /vm.c
parent975d8f52829951c2885b959af84abe66411e997e (diff)
downloadtxr-f5a213ec39cc6c19c4836d5aaca1573560e45884.tar.gz
txr-f5a213ec39cc6c19c4836d5aaca1573560e45884.tar.bz2
txr-f5a213ec39cc6c19c4836d5aaca1573560e45884.zip
vm, structs: use FLEX_ARRAY macro.
* vm.c (struct vm_closure): Use the FLEX_ARRAY macro to define the trailing array at the end of the structure instead of hard-coding [1]. * struct.c (struct struct_inst): Likewise.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index bfce175c..399bef19 100644
--- a/vm.c
+++ b/vm.c
@@ -95,7 +95,7 @@ struct vm_closure {
int nreg;
int nlvl;
unsigned ip;
- struct vm_env dspl[1];
+ struct vm_env dspl[FLEX_ARRAY];
};
val vm_desc_s, vm_closure_s;