From: Jérémie Galarneau Date: Thu, 22 Apr 2021 14:17:04 +0000 (-0400) Subject: Fix: tests: integer truncation warning on 32-bit platforms X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=3eda43dad75a0c926d0a0474c4a311ba24da2ed7 Fix: tests: integer truncation warning on 32-bit platforms large integer implicitly truncated to unsigned type [-Woverflow] Signed-off-by: Jérémie Galarneau Change-Id: I3e479d240c25550f44bbf40944484870da85a401 --- diff --git a/tests/regression/tools/trigger/name/trigger_name.c b/tests/regression/tools/trigger/name/trigger_name.c index d0d82a8af..fe62b9011 100644 --- a/tests/regression/tools/trigger/name/trigger_name.c +++ b/tests/regression/tools/trigger/name/trigger_name.c @@ -152,7 +152,7 @@ end: * important for the purposes of this test. */ static -struct lttng_trigger *create_trigger(size_t threshold) +struct lttng_trigger *create_trigger(uint64_t threshold) { struct lttng_condition *condition = NULL; struct lttng_action *action = NULL;