1
0
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:
Mark VanderVoord
2024-04-08 17:47:57 -04:00
committed by GitHub

View File

@@ -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;