forked from wireshark/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dfilter: Add infinity and NaNs to the float token
Parse INF and INFINITY (case insensitively) and NAN and NAN(char_sequence) as strtod does, bringing back support for floating point infinity and nan literals which was accidentally removed in 881dec9 Also add a note about NaN comparisons (right now we make NaNs compare equal with everything, including non-NaNs.) Add some tests with infinity and NaN
- Loading branch information
1 parent
3264bbd
commit f70ead9
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -522,6 +522,7 @@ static const char *reserved_filter_names[] = { | |
"false", | ||
"nan", | ||
"inf", | ||
"infinity", | ||
NULL | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters