From e75b244cae6b58737a3b04e65f73520df28fa5fc Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Thu, 24 May 2012 15:56:19 +0100 Subject: [PATCH] Fixed Float negation operator (bug 5292, r=psychonic). --- 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 28d8b80a..0b060d31 100644 --- a/plugins/include/float.inc +++ b/plugins/include/float.inc @@ -263,7 +263,7 @@ stock Float:operator--(Float:oper) stock Float:operator-(Float:oper) { - return oper^Float:((-1)^((-1)/2)); /* IEEE values are sign/magnitude */ + return oper^Float:cellmin; /* IEEE values are sign/magnitude */ } stock Float:operator*(Float:oper1, oper2)