Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bamless committed Jul 17, 2023
1 parent 0b61418 commit eea2702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/jstar/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <stdio.h>
#include <string.h>

#include "console_print.h"
#include "dynload.h"
#include "jstar/parse/vector.h"
#include "path.h"
Expand Down
4 changes: 2 additions & 2 deletions src/jstar.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static bool validateStack(JStarVM* vm) {

static int apiStackIndex(JStarVM* vm, int slot) {
if(slot < 0) {
ASSERT(vm->sp + slot >= vm->apiStack, "API stack slot would be negative");
ASSERT(vm->sp + slot >= vm->apiStack, "API stack underflow");
return vm->sp + slot - vm->apiStack;
}
ASSERT(vm->apiStack + slot < vm->sp, "API stack overflow");
Expand All @@ -47,7 +47,7 @@ static int apiStackIndex(JStarVM* vm, int slot) {

static Value apiStackSlot(JStarVM* vm, int slot) {
if(slot < 0) {
ASSERT(vm->sp + slot >= vm->apiStack, "API stack slot would be negative");
ASSERT(vm->sp + slot >= vm->apiStack, "API stack underflow");
return vm->sp[slot];
}
ASSERT(vm->apiStack + slot < vm->sp, "API stack overflow");
Expand Down

0 comments on commit eea2702

Please sign in to comment.