aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Lexer.php
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2020-04-11 03:40:21 +0300
committerGitHub <noreply@github.com>2020-04-11 03:40:21 +0300
commit7198653aef6eab55e1644eea9f16bf0dd0dc2edd (patch)
treee61d76954437062412493fb6436bf092ed4e4b40 /src/NXP/Classes/Lexer.php
parent4955c639e1069ba3d3415d01a3368f09b000c2a7 (diff)
Update documentation for PHPFUI/InstaDoc (#58)
Diffstat (limited to 'src/NXP/Classes/Lexer.php')
-rw-r--r--src/NXP/Classes/Lexer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/NXP/Classes/Lexer.php b/src/NXP/Classes/Lexer.php
index cd12d21..a7fe697 100644
--- a/src/NXP/Classes/Lexer.php
+++ b/src/NXP/Classes/Lexer.php
@@ -155,6 +155,7 @@ class Lexer
private function isNegativeZero($x)
{
$floatVal = floatval($x);
+
return $floatVal === 0.0 && $floatVal ** -1 === -INF;
}
}