Skip to content

Commit

Permalink
Fix float unary minus operator not functioning properly after PR #510.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Jun 10, 2016
1 parent 99481be commit 71b0cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/include/float.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(cellmin); /* IEEE values are sign/magnitude */
}
stock float operator*(float oper1, int oper2)
Expand Down

0 comments on commit 71b0cd8

Please sign in to comment.