Re: [libvirt PATCH v2 02/13] src: remove use of the INT_MULTIPLY_OVERFLOW macro

2020-01-17 Thread Pavel Hrdina
On Thu, Jan 16, 2020 at 03:24:37PM +, Daniel P. Berrangé wrote: > The GLib g_size_checked_mul() function is not quite the > same signature, and gives compiler warnings due to not > correctly casting from gsize to guint64/32. Implementing > a replacement for INT_MULTIPLY_OVERFLOW is easy enough

[libvirt PATCH v2 02/13] src: remove use of the INT_MULTIPLY_OVERFLOW macro

2020-01-16 Thread Daniel P . Berrangé
The GLib g_size_checked_mul() function is not quite the same signature, and gives compiler warnings due to not correctly casting from gsize to guint64/32. Implementing a replacement for INT_MULTIPLY_OVERFLOW is easy enough to do ourselves. Signed-off-by: Daniel P. Berrangé --- build-aux/syntax-c