Re: [PATCH v3 2/5] migration: fix xbzrle encoding rate calculation

2020-06-17 Thread Alex Bennée
Richard Henderson writes: > From: Wei Wang > > It's reported an error of implicit conversion from "unsigned long" to > "double" when compiling with Clang 10. Simply make the encoding rate 0 > when the encoded_size is 0. > > Fixes: e460a4b1a4 > Reviewed-by: Dr. David Alan Gilbert >

Re: [PATCH v3 2/5] migration: fix xbzrle encoding rate calculation

2020-06-17 Thread Philippe Mathieu-Daudé
On 6/17/20 6:37 AM, Richard Henderson wrote: > From: Wei Wang > > It's reported an error of implicit conversion from "unsigned long" to > "double" when compiling with Clang 10. Simply make the encoding rate 0 > when the encoded_size is 0. There is a similar error in tests/qht-bench.c, see the

[PATCH v3 2/5] migration: fix xbzrle encoding rate calculation

2020-06-16 Thread Richard Henderson
From: Wei Wang It's reported an error of implicit conversion from "unsigned long" to "double" when compiling with Clang 10. Simply make the encoding rate 0 when the encoded_size is 0. Fixes: e460a4b1a4 Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Richard Henderson Reported-by: Richard