mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
seq: Check start, step, end for NaN
This commit is contained in:
parent
d1e1cfc133
commit
7480034942
1 changed files with 1 additions and 4 deletions
|
@ -103,13 +103,10 @@ int main(int argc, const char* argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
if (__builtin_isnan(start) || __builtin_isnan(step) || __builtin_isnan(end)) {
|
||||||
// FIXME: Check for NaN once math.h has isnan().
|
|
||||||
if (isnan(start) || isnan(step) || isnan(end)) {
|
|
||||||
fprintf(stderr, "%s: start, step, and end must not be NaN\n", argv[0]);
|
fprintf(stderr, "%s: start, step, and end must not be NaN\n", argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
int number_of_decimals = max(number_of_start_decimals, max(number_of_step_decimals, number_of_end_decimals));
|
int number_of_decimals = max(number_of_start_decimals, max(number_of_step_decimals, number_of_end_decimals));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue