From 4eb1e8a4b05b9186e929fbd35b6506aa192c951f Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 9 Jun 2016 21:36:46 -0400 Subject: [PATCH] Fix float unary minus operator not functioning properly after PR #510. --- plugins/include/float.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/include/float.inc b/plugins/include/float.inc index 8b215c45..ae428c02 100644 --- a/plugins/include/float.inc +++ b/plugins/include/float.inc @@ -280,7 +280,7 @@ stock float operator--(float oper) stock float operator-(float oper) { - return oper^float(cellmin); /* IEEE values are sign/magnitude */ + return oper^view_as(cellmin); /* IEEE values are sign/magnitude */ } stock float operator*(float oper1, int oper2)