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)