commit | 1b9e7f696fa6ecfd5cef89ff226182bc7c3b0a16 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Jul 30 11:05:27 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jul 30 11:05:27 2021 +0200 |
tree | 0f143113e59b62d32723331aaf134381cf692436 | |
parent | 4e96f91161299d2ab864e07aa5fc41b8544f6b8f [diff] [blame] |
common BUGFIX printf len expects int
diff --git a/src/common.h b/src/common.h index 52b0311..45939fb 100644 --- a/src/common.h +++ b/src/common.h
@@ -447,7 +447,7 @@ * @brief Macro to simply put couple of string length and the string as * printf's arguments for %.*s. Use only with constant strings. */ -#define LY_PRI_LENSTR(STR) ly_strlen_const(STR), STR +#define LY_PRI_LENSTR(STR) (int)ly_strlen_const(STR), STR #define ly_sizeofarray(ARRAY) (sizeof ARRAY / sizeof *ARRAY)