summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdimovv <36302090+sdimovv@users.noreply.github.com>2024-04-07 02:57:16 +0100
committerGitHub <noreply@github.com>2024-04-07 02:57:16 +0100
commit0ace9d8273bb99b229a8e76bfab157896dee913c (patch)
treea8aa7ead06b776401ac8ecfe556c5d84f213a5ac
parent3cbe49900a6f0b061be4b9d992632c3cdab7b23a (diff)
downloadThrowTheSwitch-Unity-0ace9d8273bb99b229a8e76bfab157896dee913c.tar.gz
Cast line_num to allow compilation with `-WConversion`
-rw-r--r--auto/run_test.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto/run_test.erb b/auto/run_test.erb
index 68b3373..e334d65 100644
--- a/auto/run_test.erb
+++ b/auto/run_test.erb
@@ -2,7 +2,7 @@
static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
{
Unity.CurrentTestName = name;
- Unity.CurrentTestLineNumber = line_num;
+ Unity.CurrentTestLineNumber = (UNITY_UINT) line_num;
#ifdef UNITY_USE_COMMAND_LINE_ARGS
if (!UnityTestMatches())
return;