Fixed Float negation operator (bug 5292, r=psychonic).
Fixed Float negation operator (
bug 5292, r=psychonic).
1.1 --- a/plugins/include/float.inc Tue May 22 17:32:04 2012 -0400
1.2 +++ b/plugins/include/float.inc Thu May 24 15:56:19 2012 +0100
1.3 @@ -263,7 +263,7 @@
1.4
1.5 stock Float:operator-(Float:oper)
1.6 {
1.7 - return oper^Float:((-1)^((-1)/2)); /* IEEE values are sign/magnitude */
1.8 + return oper^Float:cellmin; /* IEEE values are sign/magnitude */
1.9 }
1.10
1.11 stock Float:operator*(Float:oper1, oper2)