-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bogus suffix warnings in autotune.php (#691)
If the is_numeric case statement evaluates to true, and the suffix is a 0 (e.g. because the input value is "2684354560" a.k.a. 2.5 GiB), it matches, and prints the warning. This is not how case statements work (they simply weak-comparison match the switch value against the case expression). The check was supposed to be in the default block all along.
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 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