[Libguestfs] [PATCH nbdkit v2] common: isaligned: Use a macro instead of relying on implicit truncation.

Richard W.M. Jones rjones at redhat.com
Mon Sep 17 20:58:49 UTC 2018


On Mon, Sep 17, 2018 at 11:39:30PM +0300, Nir Soffer wrote:
> But this version will happily accept singed int, and I think this code
> behavior with signed int is undefined.
[...]

Yes this is certainly a problem which I didn't foresee.  What do you
think of Eric's comment on the patch?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list