summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-03 01:23:38 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-03 01:23:38 -0400
commit6be24a8a51106e373406081ecd088bd1a2db4040 (patch)
tree5be60b3d2b02b4cb3d17cea5abfe58150f37d63b /types.c
parent8c2327e430ca63349c28816b47d04147873c1aca (diff)
started windows #foreign support -- floating point not working yet--also found bug with eval EXPR_CALL
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index 536ddf6..1001e07 100644
--- a/types.c
+++ b/types.c
@@ -2433,7 +2433,7 @@ static Status types_expr(Typer *tr, Expression *e) {
nvarargs += nvarargs_here;
--nvarargs;
- long arg_out_idx = arg_out - arg_exprs; /* save and restore arg_out to prevent realloc from causing problems */
+ long arg_out_idx = (long)(arg_out - arg_exprs); /* save and restore arg_out to prevent realloc from causing problems */
/* add more room (or if nvarargs_here == 0, remove room) for more varargs */
arr_set_lena(arg_exprs, narg_exprs, tr->allocr);
arg_out = arg_exprs + arg_out_idx;