From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHavd-0006a6-W1 for qemu-devel@nongnu.org; Fri, 08 Jan 2016 12:34:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHava-0003Ss-In for qemu-devel@nongnu.org; Fri, 08 Jan 2016 12:34:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHava-0003Sn-DF for qemu-devel@nongnu.org; Fri, 08 Jan 2016 12:34:18 -0500 From: Igor Mammedov Date: Fri, 8 Jan 2016 18:34:15 +0100 Message-Id: <1452274455-83334-1-git-send-email-imammedo@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] pc: acpi: fix build fail on w32 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, mst@redhat.com build fail with warnings on w32 compiler: hw/acpi/memory_hotplug_acpi_table.c: In function =E2=80=98build_memory_hotplug_aml=E2=80=99: hw/acpi/memory_hotplug_acpi_table.c:148: warning: integer constant is too large for =E2=80=98long=E2=80=99 type hw/acpi/memory_hotplug_acpi_table.c:149: warning: integer constant is too large for =E2=80=98long=E2=80=99 type fix it by expilictly saying that int const is 64bit number Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_hotplug= _acpi_table.c index 20728ac..080d9ad 100644 --- a/hw/acpi/memory_hotplug_acpi_table.c +++ b/hw/acpi/memory_hotplug_acpi_table.c @@ -145,8 +145,8 @@ void build_memory_hotplug_aml(Aml *ctx, uint32_t nr_m= em, aml_append(crs_tmpl, aml_qword_memory(AML_POS_DECODE, AML_MIN_FIXED, AML_MAX_= FIXED, AML_CACHEABLE, AML_READ_WRITE, - 0, 0x0, 0xFFFFFFFFFFFFFFFE, 0, - 0xFFFFFFFFFFFFFFFF)); + 0, 0x0, 0xFFFFFFFFFFFFFFFEULL, 0, + 0xFFFFFFFFFFFFFFFFULL)); aml_append(method, aml_name_decl("MR64", crs_tmpl)); aml_append(method, aml_create_dword_field(mr64, aml_int(14), "MINL")); --=20 1.8.3.1