X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/blobdiff_plain/6b5e4b38b5fff236dce186ec191390d92d227a47..4fba07dca7fb9275b51e5095a774fe69eeab4660:/vv_interpreter.c diff --git a/vv_interpreter.c b/vv_interpreter.c index 5ec36eb..b548a50 100644 --- a/vv_interpreter.c +++ b/vv_interpreter.c @@ -253,7 +253,7 @@ process_imp_arithmetic(uint8_t * code, size_t * pc, int64_t ** sp) case '\t': /* Modulo */ temp = stack_pop(sp); - stack_push(sp, stack_pop(sp)%temp); + stack_push(sp, llabs(stack_pop(sp) % llabs(temp))); break; default: ws_die(pc, "malformed arithmetic IMP"); break; }