From e848b7d8015dc4ab2c2d9bd49b22dbc4010789f3 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Tue, 18 Jun 2024 17:01:28 +0200 Subject: [PATCH] fix: api test compiler issue --- tests/z_api_alignment_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/z_api_alignment_test.c b/tests/z_api_alignment_test.c index aa5f634ae..7a1d233f2 100644 --- a/tests/z_api_alignment_test.c +++ b/tests/z_api_alignment_test.c @@ -226,7 +226,7 @@ int main(int argc, char **argv) { assert_eq(_ret_int8, 0); assert(hellos >= 1); - uint32_t _scouting_timeout = strtoul(SCOUTING_TIMEOUT, NULL, 10); + uint32_t _scouting_timeout = (uint32_t)strtoul(SCOUTING_TIMEOUT, NULL, 10); z_sleep_ms(_scouting_timeout); printf("Ok\n"); z_sleep_s(SLEEP);