diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-01-20 23:57:48 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-01-20 23:57:48 +0300 |
commit | 82187a58f53fef8fe88f89a8aa38729d871a2a37 (patch) | |
tree | 45edecca823e02d3901dd76e37a7211ed6d4b4fb /source/blender/blenlib/intern | |
parent | 475d536f720df3ed9bed783e6d108fa1341fe541 (diff) |
Fix own mistake in rB051526da6279, confusing off_t with ptrdiff_t.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/string_utf8.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c index 7352cd7332b..83d4a75952f 100644 --- a/source/blender/blenlib/intern/string_utf8.c +++ b/source/blender/blenlib/intern/string_utf8.c @@ -74,7 +74,7 @@ static const size_t utf8_skip_data[256] = { * * \return the offset of the first invalid byte. */ -off_t BLI_utf8_invalid_byte(const char *str, size_t length) +ptrdiff_t BLI_utf8_invalid_byte(const char *str, size_t length) { const unsigned char *p, *perr, *pend = (const unsigned char *)str + length; unsigned char c; @@ -171,7 +171,7 @@ utf8_error: */ int BLI_utf8_invalid_strip(char *str, size_t length) { - off_t bad_char; + ptrdiff_t bad_char; int tot = 0; BLI_assert(str[length] == '\0'); |