From 64ac490fc922cc927fa9f442014417805270c673 Mon Sep 17 00:00:00 2001 From: Frank Hessel Date: Mon, 30 Sep 2019 22:31:15 +0200 Subject: [PATCH] tests/driver_adt7310: Add explicit cast required for llvm --- tests/driver_adt7310/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/driver_adt7310/main.c b/tests/driver_adt7310/main.c index bf4b0f055b..c640bcc442 100644 --- a/tests/driver_adt7310/main.c +++ b/tests/driver_adt7310/main.c @@ -79,8 +79,8 @@ int test_adt7310_sample_print(adt7310_t *dev) float fractional; fractional = modff(celsius_float, &integral); - printf("0x%04" PRIx16 " %7" PRId32 " mC %4d.%07u C)\n", raw, millicelsius, - (int)integral, abs(fractional * 10000000.f)); + printf("0x%04" PRIx16 " %7" PRId32 " mC %4d.%07lu C)\n", raw, millicelsius, + (int)integral, labs((long)(fractional * 10000000.f))); return 0; }