Improve compliance with C standards regarding signed integer shifts.
authorMark H Weaver <mhw@netris.org>
Fri, 7 Mar 2014 09:21:46 +0000 (04:21 -0500)
committerMark H Weaver <mhw@netris.org>
Fri, 7 Mar 2014 09:34:27 +0000 (04:34 -0500)
commitde7aa61ac48811610b1b99005ada2464cf1a96f1
treedbdd56eacaa8f9dca3c23f8e7006c0852373a4d9
parentce0ba9d087fd5b03d85a64deddaf3c59bd136a3d
Improve compliance with C standards regarding signed integer shifts.

* configure.ac: Add -fwrapv when using GCC (or compatible), if
  supported.

* libguile/numbers.h (SCM_I_MAKINUM): Cast to scm_t_bits (unsigned)
  before shifting, to avoid undefined behavior.
configure.ac
libguile/numbers.h