Skip to content

Commit

Permalink
Fixed possible syntax error in Configure's test program for Inf/NaN b…
Browse files Browse the repository at this point in the history
…ytes.

"try.c" for (double|longdbl)(inf|nan)bytes seems to lack some
preprocessor directives (probably accidentaly removed) and
caused syntax error if HAS_LONG_DOUBLE is not defined.
  • Loading branch information
t-a-k committed Oct 28, 2021
1 parent 7ab87c6 commit ecf1d42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Configure
Expand Up @@ -20777,10 +20777,12 @@ int main(int argc, char *argv[]) {
memset((char *)&ldinf + 10, '\0', LONG_DOUBLESIZE - 10);
memset((char *)&ldnan + 10, '\0', LONG_DOUBLESIZE - 10);
# endif
#endif
if (argc == 2) {
switch (argv[1][0]) {
case '1': bytes(&dinf, sizeof(dinf)); break;
case '2': bytes(&dnan, sizeof(dnan)); break;
#ifdef HAS_LONG_DOUBLE
case '3': bytes(&ldinf, sizeof(ldinf)); break;
case '4': bytes(&ldnan, sizeof(ldnan)); break;
#endif
Expand Down

0 comments on commit ecf1d42

Please sign in to comment.