From 69fa3ad54f0ea8944084902bce0e89d38155acee Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 19 Jul 2019 15:05:20 +0200 Subject: [PATCH] :art: VM improv --- src/vm/vm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index 69e4c163..2e4bd7c1 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -203,7 +203,7 @@ DISPATCH() #define IF_LOGICAL(op)\ reg -= SZ_FLOAT; \ - *(m_int*)(reg-SZ_INT) = (*(m_int*)(reg-SZ_INT) op (m_int)*(m_float*)reg); \ + *(m_int*)(reg-SZ_INT) = (m_int)(*(m_int*)(reg-SZ_INT) op *(m_float*)reg); \ DISPATCH() __attribute__((hot)) @@ -217,10 +217,10 @@ __attribute__((hot)) reg -= SZ_INT; \ *(m_float*)(reg-SZ_FLOAT) op##= (m_float)*(m_int*)reg; \ DISPATCH() - + #define FI_LOGICAL(op) \ reg -= SZ_FLOAT; \ - *(m_int*)(reg-SZ_INT) = ((m_int)*(m_float*)(reg-SZ_INT) op\ + *(m_int*)(reg-SZ_INT) = (m_int)(*(m_float*)(reg-SZ_INT) op\ *(m_int*)(reg + SZ_FLOAT-SZ_INT)); \ DISPATCH() @@ -228,7 +228,7 @@ __attribute__((hot)) reg -= SZ_FLOAT; \ __VA_ARGS__ \ *(m_int*)(reg-SZ_INT) = (**(m_int**)(reg+SZ_FLOAT -SZ_INT) op##= \ - (m_int)(*(m_float*)(reg-SZ_INT))); \ + /*(m_int)*/(*(m_float*)(reg-SZ_INT))); \ DISPATCH() -- 2.43.0