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>2017-10-28 09:48:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-28 09:48:45 +0300
commit8ac69ff9dcfc6aba8b5de8d53658612c8411b43b (patch)
treee3297adfe4494190ddb707e62161cdc9a366b737 /source/blender/blenlib/intern/path_util.c
parent1d409defbf3fd40b9291c4945975cc36e355ddc0 (diff)
Cleanup: use uint type in BLI
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r--source/blender/blenlib/intern/path_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 4b3a74d02ae..f19d6ca31d6 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -85,13 +85,13 @@ static bool BLI_path_is_abs(const char *name);
*/
int BLI_stringdec(const char *string, char *head, char *tail, unsigned short *numlen)
{
- unsigned int nums = 0, nume = 0;
+ uint nums = 0, nume = 0;
int i;
bool found_digit = false;
const char * const lslash = BLI_last_slash(string);
- const unsigned int string_len = strlen(string);
- const unsigned int lslash_len = lslash != NULL ? (int)(lslash - string) : 0;
- unsigned int name_end = string_len;
+ const uint string_len = strlen(string);
+ const uint lslash_len = lslash != NULL ? (int)(lslash - string) : 0;
+ uint name_end = string_len;
while (name_end > lslash_len && string[--name_end] != '.') {} /* name ends at dot if present */
if (name_end == lslash_len && string[name_end] != '.') name_end = string_len;
@@ -700,7 +700,7 @@ bool BLI_parent_dir(char *path)
*/
static bool stringframe_chars(const char *path, int *char_start, int *char_end)
{
- unsigned int ch_sta, ch_end, i;
+ uint ch_sta, ch_end, i;
/* Insert current frame: file### -> file001 */
ch_sta = ch_end = 0;
for (i = 0; path[i] != '\0'; i++) {