mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-29 03:04:27 +01:00
Merge pull request #721 from sdimovv/patch-1
Cast line_num to allow compilation with `-WConversion`
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
|
static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
|
||||||
{
|
{
|
||||||
Unity.CurrentTestName = name;
|
Unity.CurrentTestName = name;
|
||||||
Unity.CurrentTestLineNumber = line_num;
|
Unity.CurrentTestLineNumber = (UNITY_UINT) line_num;
|
||||||
#ifdef UNITY_USE_COMMAND_LINE_ARGS
|
#ifdef UNITY_USE_COMMAND_LINE_ARGS
|
||||||
if (!UnityTestMatches())
|
if (!UnityTestMatches())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user