Skip to content

Commit 030a50b

Browse files
committed
fix all build errors for ubantu
1 parent 4da78cc commit 030a50b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Value moved to common.h
1515

1616
#define SIGN_BIT ((uint64_t)0x8000000000000000)
17-
#define QNAN ((uint64_t)0x7ffc000000000000)
17+
#define QNAN ((uint64_t)0x7ff8000000000000)
1818

1919
#define TAG_NULL 1
2020
#define TAG_FALSE 2

src/runtime/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ static InterpretResult run(VM* vm) {
11071107
runtimeError(vm, "Expected %d arguments but got %d.", closure->function->arity, argCount);
11081108
return INTERPRET_RUNTIME_ERROR;
11091109
}
1110-
if (vm->frameCount == 64) {
1110+
if (vm->frameCount == FRAMES_MAX) {
11111111
runtimeError(vm, "Stack overflow.");
11121112
return INTERPRET_RUNTIME_ERROR;
11131113
}

0 commit comments

Comments
 (0)