Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 004af40

Browse files
authored
Merge pull request #1505 from basvodde/master
Fix a warning related to printing line numbers
2 parents 8bd8aef + bfb97f2 commit 004af40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CppUTest/TestRegistry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void TestRegistry::listTestLocations(TestResult& result)
135135
testLocation += ".";
136136
testLocation += test->getFile();
137137
testLocation += ".";
138-
testLocation += StringFromFormat("%d\n",test->getLineNumber());
138+
testLocation += StringFromFormat("%d\n",(int) test->getLineNumber());
139139

140140
testLocations += testLocation;
141141
}

0 commit comments

Comments
 (0)