1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/driver_adt7310: Add explicit cast required for llvm

This commit is contained in:
Frank Hessel 2019-09-30 22:31:15 +02:00
parent c9aa1c3516
commit 64ac490fc9
No known key found for this signature in database
GPG Key ID: E4DB68890A128F7B

View File

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