From 122b47bb77420510afc6881d36cb50e8ba0ef4ee Mon Sep 17 00:00:00 2001 From: Per Malmberg Date: Sat, 11 Jun 2016 21:22:34 +0200 Subject: [PATCH] Explict cast to remove waring. --- rlutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlutil.h b/rlutil.h index 24b6322..4bae8b6 100644 --- a/rlutil.h +++ b/rlutil.h @@ -574,7 +574,7 @@ RLUTIL_INLINE void locate(int x, int y) { #ifdef __cplusplus RLUTIL_INLINE void setString(const RLUTIL_STRING_T & str_) { const char * const str = str_.data(); - unsigned int len = str_.size(); + unsigned int len = static_cast( str_.size() ); #else // __cplusplus RLUTIL_INLINE void setString(RLUTIL_STRING_T str) { unsigned int len = strlen(str);