Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-13 09:40:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-13 09:40:51 +0400
commit28ecc1ce20a1cedc15026c0f2ff54446c4e9bf73 (patch)
tree5a1d229fd161467e386a69ee1ec32d5404c9e7ed /source/blender/blenlib/intern/string_cursor_utf8.c
parent8576a275dcb2652d4593e473ea61e2033d27c553 (diff)
fix for building with mingw
Diffstat (limited to 'source/blender/blenlib/intern/string_cursor_utf8.c')
-rw-r--r--source/blender/blenlib/intern/string_cursor_utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/string_cursor_utf8.c b/source/blender/blenlib/intern/string_cursor_utf8.c
index a0d3be91607..0a579fa7108 100644
--- a/source/blender/blenlib/intern/string_cursor_utf8.c
+++ b/source/blender/blenlib/intern/string_cursor_utf8.c
@@ -118,8 +118,8 @@ int BLI_str_cursor_step_next_utf8(const char *str, size_t maxlen, int *pos)
const char *str_next = BLI_str_find_next_char_utf8(str_pos, str_end);
if (str_next) {
(*pos) += (str_next - str_pos);
- if ((*pos) > maxlen) {
- (*pos) = maxlen;
+ if ((*pos) > (int)maxlen) {
+ (*pos) = (int)maxlen;
}
return TRUE;
}