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

core/macros: fix SIGNOF() macro with size_t

This commit is contained in:
Benjamin Valentin 2022-11-04 22:50:16 +01:00 committed by Benjamin Valentin
parent 19943d2aa8
commit 1eb02f7fda

View File

@ -31,7 +31,7 @@ extern "C" {
unsigned int: 1, \ unsigned int: 1, \
unsigned long: 1, \ unsigned long: 1, \
unsigned long long: 1, \ unsigned long long: 1, \
default: (long long)(a) < 0 ? -1 : 1) default: ((a) > 0LL) ? 1 : -1)
/** /**
* @brief Calculates @p a/ @p b with arithmetic rounding * @brief Calculates @p a/ @p b with arithmetic rounding
*/ */