math: fix lrint, lround, nexttoward tests for ldbl==dbl and no fenv
[libc-test] / src / math / gen / util.c
index 5b1aa48..10f912c 100644 (file)
@@ -73,7 +73,7 @@ char *dropcomm(char *buf)
        char *p = buf;
 
        for (; *p; p++)
-               if (*p == '/' && p[1] == '/') {
+               if ((*p == '/' && p[1] == '/') || *p == '#') {
                        *p = 0;
                        break;
                }