-
由 Thomas Huth 提交于
The virtio_ring.h header is used in userspace programs (ie. QEMU), too. Here we can not assume that sizeof(pointer) is the same as sizeof(long), e.g. when compiling for Windows, so the typecast in vring_init() should be done with (uintptr_t) instead of (unsigned long). Signed-off-by: NThomas Huth <thuth@redhat.com> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
d768f32a