From 5357474ad8b81ce0e41907d99e9636fcc7c3a6f6 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 10 Jan 2015 19:13:38 +0100 Subject: Fix building with very strict flags, use size_t rather than int for string length. Reported on bf-committers. --- source/blender/blenlib/BLI_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_string.h') diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h index 54eb76490b8..c4853e37398 100644 --- a/source/blender/blenlib/BLI_string.h +++ b/source/blender/blenlib/BLI_string.h @@ -86,7 +86,7 @@ int BLI_str_index_in_array_n(const char *__restrict str, const char **__restrict int BLI_str_index_in_array(const char *__restrict str, const char **__restrict str_array) ATTR_NONNULL(); bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL(); -bool BLI_strn_endswith(const char *__restrict str, const char *__restrict end, int length) ATTR_NONNULL(); +bool BLI_strn_endswith(const char *__restrict str, const char *__restrict end, size_t length) ATTR_NONNULL(); size_t BLI_str_partition(const char *str, const char delim[], char **sep, char **suf) ATTR_NONNULL(); size_t BLI_str_rpartition(const char *str, const char delim[], char **sep, char **suf) ATTR_NONNULL(); -- cgit v1.2.3