Skip to content

Commit 6b06b13

Browse files
committed
fix conversion from double to int
these warnings are treated as errors and thus make the MSVC build fail
1 parent 2ed1869 commit 6b06b13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/CppUTestExt/MockSupport_cTestCFile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ void all_mock_support_c_calls(void)
100100
mock_c()->intReturnValue();
101101
mock_c()->returnValue();
102102

103-
mock_c()->expectOneCall("boo2")->andReturnUnsignedIntValue(1.0);
103+
mock_c()->expectOneCall("boo2")->andReturnUnsignedIntValue(1);
104104
mock_c()->actualCall("boo2")->unsignedIntReturnValue();
105105
mock_c()->unsignedIntReturnValue();
106106

107-
mock_c()->expectOneCall("boo3")->andReturnLongIntValue(1.0);
107+
mock_c()->expectOneCall("boo3")->andReturnLongIntValue(1);
108108
mock_c()->actualCall("boo3")->longIntReturnValue();
109109
mock_c()->longIntReturnValue();
110110

111-
mock_c()->expectOneCall("boo3")->andReturnUnsignedLongIntValue(1.0);
111+
mock_c()->expectOneCall("boo3")->andReturnUnsignedLongIntValue(1);
112112
mock_c()->actualCall("boo3")->unsignedLongIntReturnValue();
113113
mock_c()->unsignedLongIntReturnValue();
114114

0 commit comments

Comments
 (0)