From 43a4a05cefa9b37e378aae0d2318adfa5d469b0c Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 28 Aug 2024 15:14:54 +0800 Subject: [PATCH] MockParameterTest.cpp: fix ULL constants Fixes: https://github.com/cpputest/cpputest/issues/1801 --- tests/CppUTestExt/MockParameterTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git tests/CppUTestExt/MockParameterTest.cpp tests/CppUTestExt/MockParameterTest.cpp index 8b3e594b..54f71966 100644 --- tests/CppUTestExt/MockParameterTest.cpp +++ tests/CppUTestExt/MockParameterTest.cpp @@ -67,7 +67,7 @@ TEST(MockParameterTest, expectOneIntegerParameterAndValue) TEST(MockParameterTest, expectOneUnsignedLongLongIntegerParameterAndValue) { - unsigned long long value = 0xFFFFAAAAFFFFAAAA; + unsigned long long value = 0xFFFFAAAAFFFFAAAAULL; mock().expectOneCall("foo").withParameter("parameter", value); mock().actualCall("foo").withParameter("parameter", value); @@ -76,7 +76,7 @@ TEST(MockParameterTest, expectOneUnsignedLongLongIntegerParameterAndValue) TEST(MockParameterTest, expectOneLongLongIntegerParameterAndValue) { - long long value = 0x7FFFAAAAFFFFAAAA; + long long value = 0x7FFFAAAAFFFFAAAAULL; mock().expectOneCall("foo").withParameter("parameter", value); mock().actualCall("foo").withParameter("parameter", value);