]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix compilation error when enum variable size differs from 'int'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 25 May 2015 15:14:57 +0000 (17:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 May 2015 07:06:40 +0000 (09:06 +0200)
commit27fd559892c2df930dbd7c8215a8834026e3ea96
tree6d8d9cb227c36feb75dcd8f39031dd331ec2a71a
parente14cdeb44f1c902e9383327c828e799b452da1f6
qemu: Fix compilation error when enum variable size differs from 'int'

Since commit bcd9a564b631aa virDomainNumatuneGetMode returns the value
via a pointer rather than in the return value. The change triggered
problems with platforms where the compiler decides to use a data type of
size different than integer at the point where we typecast it.

Work around the issue by using an intermediate variable of the correct
type that gets casted back by the default typecasting rules.
src/qemu/qemu_driver.c