1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 07:50:27 +00:00

Update build script, remove windows build issues.

This commit is contained in:
Calvin Rose 2018-12-08 17:40:05 -05:00
parent 793981ce2b
commit 64d842d2ef
2 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,7 @@ copy README.md dist\README.md
copy janet.lib dist\janet.lib
copy janet.exp dist\janet.exp
copy src\include\janet\janet.h dist\janet.h
exit /b 0
:TESTFAIL
@echo.

View File

@ -265,7 +265,7 @@ static void marshal_one_fiber(MarshalState *st, JanetFiber *fiber, int flags) {
if (!frame->func) longjmp(st->err, MR_C_STACKFRAME);
pushint(st, frame->flags);
pushint(st, frame->prevframe);
int32_t pcdiff = frame->pc - frame->func->def->bytecode;
int32_t pcdiff = (int32_t)(frame->pc - frame->func->def->bytecode);
pushint(st, pcdiff);
marshal_one(st, janet_wrap_function(frame->func), flags + 1);
if (frame->env) marshal_one_env(st, frame->env, flags + 1);