bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Logic error


From: Aaron Campbell
Subject: Logic error
Date: Sat, 17 Aug 2002 09:46:30 -0400 (EDT)

Another bug for you... Obviously (!c == -1) makes no sense.

--- groff-1.17.2/src/preproc/pic/lex.cc.orig    Sat Aug 17 05:43:15 2002
+++ groff-1.17.2/src/preproc/pic/lex.cc Sat Aug 17 05:43:20 2002
@@ -953,7 +953,7 @@
          double factor = 1.0;
          for (;;) {
            c = input_stack::peek_char();
-           if (!c == EOF || !csdigit(c))
+           if (c == EOF || !csdigit(c))
              break;
            input_stack::get_char();
            context_buffer += char(c);

---
Aaron Campbell (address@hidden || address@hidden)
http://www.monkey.org/~aaron





reply via email to

[Prev in Thread] Current Thread [Next in Thread]