We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7bcc50 commit 8ea19d4Copy full SHA for 8ea19d4
test/test-floatingpoint.c
@@ -21,7 +21,9 @@ int main(void) {
21
/* 15 + 1/2 + 1/8 = 15.625 */
22
/* 15 + 1/2 + 1/8 + 1/32 = 15.65625 */
23
/* 15 + 1/2 + 1/8 + 1/32 + 1/128 = 15.6640625 */
24
- if ((-*magic == 15.0 + 0.5 + 0.125 + 0.03125 + 0.0078125)) abort();
+ if ((*magic >= 15.0 + 0.5 + 0.125 + 0.03125) &&
25
+ (*magic <= 15.0 + 0.5 + 0.125 + 0.03125 + 0.0078125))
26
+ abort();
27
28
}
29
0 commit comments