aboutsummaryrefslogtreecommitdiff
path: root/vm/runtime.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-01 14:23:48 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-01 14:23:48 +0000
commit727081f99a5065787dd3d035f92ef9f502f3622c (patch)
treee5989948e5a8d46c78345e09d5f8b80f1600efda /vm/runtime.c
parent90fb9816b495167c66f40284b66a9d4da22ae769 (diff)
downloadovm-727081f99a5065787dd3d035f92ef9f502f3622c.tar.gz
ovm-727081f99a5065787dd3d035f92ef9f502f3622c.tar.bz2
ovm-727081f99a5065787dd3d035f92ef9f502f3622c.zip
Removed OP_EQ signed versions as they're useless
A negative number under 2s complement can never be equal to its positive as the top bit *must* be on. If two numbers are equivalent bit-by-bit then they are equal for both signed and unsigned numbers.
Diffstat (limited to 'vm/runtime.c')
-rw-r--r--vm/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/runtime.c b/vm/runtime.c
index b29fcdc..998bdc3 100644
--- a/vm/runtime.c
+++ b/vm/runtime.c
@@ -55,7 +55,7 @@ const char *err_as_cstr(err_t err)
err_t vm_execute(vm_t *vm)
{
- static_assert(NUMBER_OF_OPCODES == 73, "vm_execute: Out of date");
+ static_assert(NUMBER_OF_OPCODES == 70, "vm_execute: Out of date");
struct Program *prog = &vm->program;
if (prog->ptr >= prog->max)
return ERR_END_OF_PROGRAM;