intprops: remove assumption about A|B representation
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 May 2011 18:30:16 +0000 (11:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 May 2011 18:30:16 +0000 (11:30 -0700)
commit48552f312571692c5c0141c8d6a94f8efb65728a
tree486f6eb50de7eb5e0441acb0a3e19c365ef1a630
parent88dabde472b81a034a72484a32ef51d0fd549db8
intprops: remove assumption about A|B representation

* lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
is a valid integer if both A and B are.  Although this is true for
all known practical hosts, the C standard doesn't guarantee it,
and the code need not assume it.  Also, this change may work around
HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
ChangeLog
lib/intprops.h