X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/blobdiff_plain/0750ec764cbea33d0b4646558619a0b5e365cc15..9e28c1564b02cfc08f7f83c09b97de77f18e0d90:/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; }