diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-30 15:14:18 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-30 15:14:18 +0300 |
commit | df8a7ec3a81394fef4a21a6f1c1e4a43d5d44fba (patch) | |
tree | 9a44a8ed10907a5344c651e5c2823b7b2c27d4ec /source/blender/blenlib/intern/string.c | |
parent | cdcd648547c62afb6f0112bf1f2ccf986faff363 (diff) |
Fix fox strict flags: Avoid sign cast of strlen() result
Diffstat (limited to 'source/blender/blenlib/intern/string.c')
-rw-r--r-- | source/blender/blenlib/intern/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index f46676ac0cd..938728aa4bb 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -783,7 +783,7 @@ void BLI_str_toupper_ascii(char *str, const size_t len) */ void BLI_str_rstrip(char *str) { - for (int i = strlen(str) - 1; i > 0; i--) { + for (int i = (int)strlen(str) - 1; i > 0; i--) { if (isspace(str[i])) { str[i] = '\0'; } |