milkymist-pfpu: fix potential integer overflow
authorMichael Walle <michael@walle.cc>
Fri, 14 Oct 2016 09:51:50 +0000 (11:51 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 28 Oct 2016 15:17:23 +0000 (18:17 +0300)
commitc1a900cf4a3925c2e4b313b82da5df955f17b70a
treefe8b210b92d6372a5e99236acdca7ba2985710a6
parentf96fe6b5c27b9a66dba71044af0716f3d3e5601f
milkymist-pfpu: fix potential integer overflow

Since the lm32 is a 32 bit architecture, just return a 32 bit value which
is then converted to a 64 bit value.

Spotted by coverity, CID 1005506.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/misc/milkymist-pfpu.c