bug-gnulib
[Top][All Lists]
Advanced

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

stdbool.m4 bug


From: Bruno Haible
Subject: stdbool.m4 bug
Date: Mon, 17 Oct 2005 12:29:14 +0200
User-agent: KMail/1.5

Hi Paul,

This snippet of code in stdbool.m4, added on 2004-06-01, looks fishy to me:

  enum { j = false, k = true, l = false * true, m = true * 256 };
  ...
  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
          + !m + !n + !o);

You are expecting that j and l evaluate to true?

I'd suggest to revert the tests of j and l, by writing !!j and !!l
instead of !j and !l, respectively.

Bruno





reply via email to

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