[Bf-blender-cvs] [df8a7ec3a81] blender2.8: Fix fox strict flags: Avoid sign cast of strlen() result

Sergey Sharybin noreply at git.blender.org
Thu Aug 30 14:14:44 CEST 2018


Commit: df8a7ec3a81394fef4a21a6f1c1e4a43d5d44fba
Author: Sergey Sharybin
Date:   Thu Aug 30 14:14:18 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBdf8a7ec3a81394fef4a21a6f1c1e4a43d5d44fba

Fix fox strict flags: Avoid sign cast of strlen() result

===================================================================

M	source/blender/blenlib/intern/string.c

===================================================================

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';
 		}



More information about the Bf-blender-cvs mailing list