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>2016-05-03 11:16:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-05-03 11:20:33 +0300
commit3dcc05c591ddda768d0870025be70ccd299f3df3 (patch)
treec83cb2f63ce1d517574e4410e09c9e71d6040f57 /source/blender/blenlib/intern/path_util.c
parentc2f28864d6f381f560f30bc8e7da56a2787881dd (diff)
Cleanup: no need to cast for pointer comparison
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r--source/blender/blenlib/intern/path_util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index fadfb64f1e1..2b793841c38 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1927,8 +1927,7 @@ const char *BLI_first_slash(const char *string)
if (!ffslash) return fbslash;
else if (!fbslash) return ffslash;
- if ((intptr_t)ffslash < (intptr_t)fbslash) return ffslash;
- else return fbslash;
+ return (ffslash < fbslash) ? ffslash : fbslash;
}
/**
@@ -1942,8 +1941,7 @@ const char *BLI_last_slash(const char *string)
if (!lfslash) return lbslash;
else if (!lbslash) return lfslash;
- if ((intptr_t)lfslash < (intptr_t)lbslash) return lbslash;
- else return lfslash;
+ return (lfslash > lbslash) ? lfslash : lbslash;
}
/**