mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed am50089 - unary - float operator
This commit is contained in:
parent
b3d7f04b5e
commit
ade56b62e9
@ -102,7 +102,7 @@ stock Float:operator--(Float:oper)
|
|||||||
return oper-1.0;
|
return oper-1.0;
|
||||||
|
|
||||||
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)
|
stock Float:operator*(Float:oper1, oper2)
|
||||||
return floatmul(oper1, float(oper2)); /* "*" is commutative */
|
return floatmul(oper1, float(oper2)); /* "*" is commutative */
|
||||||
|
Loading…
Reference in New Issue
Block a user