Explicit casting to 'ram_addr_t' in order to avoid "-Wconstant-conversion" on 
clang 3.4 or later.

Signed-off-by: SeokYeon Hwang <syeon.hw...@samsung.com>
---
 hw/i386/smbios.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/smbios.c b/hw/i386/smbios.c
index e3fa1b2..ace9c44 100644
--- a/hw/i386/smbios.c
+++ b/hw/i386/smbios.c
@@ -836,7 +836,7 @@ void smbios_get_tables(uint8_t **tables, size_t *tables_len,
         smbios_build_type_16_table(dimm_cnt);
 
         for (i = 0; i < dimm_cnt; i++) {
-            smbios_build_type_17_table(i, GET_DIMM_SZ);
+            smbios_build_type_17_table(i, (ram_addr_t)GET_DIMM_SZ);
         }
 
         for (i = 0, instance = 0; i < e820_get_num_entries(); i++) {
-- 
2.1.0


Reply via email to