Re: [Qemu-devel] [PATCH] lm32: milkymist-tmu2: fix another integer overflow

2017-01-12 Thread Michael Tokarev
06.01.2017 20:45, Peter Maydell wrote: > Don't truncate the multiplication and do a 64 bit one instead > because the result is stored in a 64 bit variable. > > This fixes a similar coverity warning to commit 237a8650d640, > in a similar way, and is the other half of the fix for > coverity CID 1167

Re: [Qemu-devel] [PATCH] lm32: milkymist-tmu2: fix another integer overflow

2017-01-06 Thread Michael Walle
Am 6. Januar 2017 18:45:14 MEZ schrieb Peter Maydell : >Don't truncate the multiplication and do a 64 bit one instead >because the result is stored in a 64 bit variable. > >This fixes a similar coverity warning to commit 237a8650d640, >in a similar way, and is the other half of the fix for >coverit

[Qemu-devel] [PATCH] lm32: milkymist-tmu2: fix another integer overflow

2017-01-06 Thread Peter Maydell
Don't truncate the multiplication and do a 64 bit one instead because the result is stored in a 64 bit variable. This fixes a similar coverity warning to commit 237a8650d640, in a similar way, and is the other half of the fix for coverity CID 1167561. Signed-off-by: Peter Maydell --- hw/display