summaryrefslogtreecommitdiff
path: root/foreign.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-19 16:28:46 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-19 16:28:46 -0400
commit29be3d971133bbb6f45008d877d1094ff9276123 (patch)
treee14181479706f968328a65265b1bdc94c3f50d7f /foreign.c
parentb5daaa00a4b1049f5e2ddc0bb658a17e0ee1e48f (diff)
#ifs inside structs
Diffstat (limited to 'foreign.c')
-rw-r--r--foreign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/foreign.c b/foreign.c
index 6018487..6e25a77 100644
--- a/foreign.c
+++ b/foreign.c
@@ -176,7 +176,7 @@ static bool arg_list_start(av_alist *arg_list, void (*fn)(), Value *return_val,
splittable = true;
size_t word_size = sizeof(__avword);
arr_foreach(struc->fields, Field, f) {
- if (f->offset / word_size != (f->offset + compiler_sizeof(&f->type) - 1) / word_size) {
+ if (f->offset / word_size != (f->offset + compiler_sizeof(f->type) - 1) / word_size) {
splittable = false;
break;
}