Skip to content

Commit

Permalink
Coerce size()/strlen() to unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeNI authored and cxong committed Feb 27, 2024
1 parent 6ba7929 commit 782fb12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cbehave/rlutil/rlutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@ 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<unsigned int>(str_.size());
#else // __cplusplus
RLUTIL_INLINE void setString(RLUTIL_STRING_T str) {
unsigned int len = strlen(str);
unsigned int len = (unsigned int)strlen(str);
#endif // __cplusplus
#if defined(_WIN32) && !defined(RLUTIL_USE_ANSI)
HANDLE hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);
Expand Down

0 comments on commit 782fb12

Please sign in to comment.