Mercurial > octave-nkf
view .hgsub @ 17194:aada14bf74ed
randmtzig.c: prevent left-shift of a 1 into sign bit in oct_init_by_entropy().
* randmtzig.c: in expression "word[0] + ... + (word[3]<<24)", cast the latter
to uint32_t before shifting, preventing (C99) undefined behavior.
author | Philipp Kutin <philipp.kutin@gmail.com> |
---|---|
date | Wed, 07 Aug 2013 12:54:30 +0200 |
parents | 44f30dcd87e0 |
children |