Skip to content
Snippets Groups Projects
Commit a95ce770 authored by Simon McVittie's avatar Simon McVittie Committed by Vivek Das Mohapatra
Browse files

ld-libs: Ensure consistent signedness in MIN()


With clang:
error: comparison of integers of different signs: 'long' and 'unsigned long' [-Werror,-Wsign-compare]

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 8af96044
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -446,7 +446,7 @@ search_ldpath (const char *name, const char *ldpath, ld_libs_t *ldlibs, int i) ...@@ -446,7 +446,7 @@ search_ldpath (const char *name, const char *ldpath, ld_libs_t *ldlibs, int i)
end = strchr( sp, ':' ); end = strchr( sp, ':' );
if( end ) if( end )
len = MIN((end - sp), PATH_MAX - plen - 1); len = MIN((size_t) (end - sp), PATH_MAX - plen - 1);
else else
len = MIN(strlen( sp ), PATH_MAX - plen - 1); len = MIN(strlen( sp ), PATH_MAX - plen - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment