]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/qdev-core.h
qdev: wrap default property value in an union
[mirror_qemu.git] / include / hw / qdev-core.h
index 9523339762ef9189b7a0494e77ace36833bb7d97..784971b8d89ff00ebf055735b177b2ec0d555dfd 100644 (file)
@@ -226,7 +226,9 @@ struct Property {
     PropertyInfo *info;
     ptrdiff_t    offset;
     uint8_t      bitnr;
-    int64_t      defval;
+    union {
+        int64_t i;
+    } defval;
     int          arrayoffset;
     PropertyInfo *arrayinfo;
     int          arrayfieldsize;