From 3b718b7abb544aa788779dce36e96b0bfae03ebf Mon Sep 17 00:00:00 2001 From: Ben Gamari <bgamari@smart-cactus.org> Date: Mon, 26 Oct 2015 09:12:13 +0000 Subject: [PATCH] T10518: Ensure literal has 64-bit type Otherwise we get a C-- lint error due to mismatched RHS and variable types. --- testsuite/tests/codeGen/should_compile/T10518.cmm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/tests/codeGen/should_compile/T10518.cmm b/testsuite/tests/codeGen/should_compile/T10518.cmm index 966cd4ab5363..cea46398bfd0 100644 --- a/testsuite/tests/codeGen/should_compile/T10518.cmm +++ b/testsuite/tests/codeGen/should_compile/T10518.cmm @@ -1,5 +1,5 @@ foo() { bits64 a; - a = 0x10000000000000000; // overflows 64 bits + a = (0x10000000000000000 :: bits64); // overflows 64 bits return (a); } -- GitLab