From 7c35acca7527c3d80180217538fbb602513fd57d Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 17 Jun 2019 23:53:38 -0400 Subject: [PATCH] One more MSVC warning. --- src/core/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/parse.c b/src/core/parse.c index b1dd6161..e1c43a1b 100644 --- a/src/core/parse.c +++ b/src/core/parse.c @@ -973,8 +973,8 @@ static Janet parser_state_frames(const JanetParser *p) { Janet *args = p->args; for (int32_t i = count - 1; i >= 0; --i) { JanetParseState *s = p->states + i; - states->data[i] = janet_wrap_parse_state(s, args, buf, p->bufcount); - args -= (ptrdiff_t) s->argn; + states->data[i] = janet_wrap_parse_state(s, args, buf, (uint32_t) p->bufcount); + args -= s->argn; } return janet_wrap_array(states); }