From 0158ed6aae594cb1c5269f463bbd364e71c16dca Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 17 Jul 2024 18:21:28 +0200 Subject: [PATCH] Fix rpn not and bitnot operations not working --- qcsrc/common/command/rpn.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/command/rpn.qc b/qcsrc/common/command/rpn.qc index 01e7c515f..4327dc84d 100644 --- a/qcsrc/common/command/rpn.qc +++ b/qcsrc/common/command/rpn.qc @@ -191,9 +191,9 @@ void GenericCommand_rpn(int request, int argc, string command) f = rpn_popf(); rpn_setf(!rpn_getf() != !f); } else if(rpncmd == "bitnot") { - rpn_setf(~rpn_popf()); + rpn_setf(~rpn_getf()); } else if(rpncmd == "not") { - rpn_setf(!rpn_popf()); + rpn_setf(!rpn_getf()); } else if(rpncmd == "abs") { rpn_setf(fabs(rpn_getf())); } else if(rpncmd == "sgn") { -- 2.39.2