mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Fix the build on FreeBSD with Clang
NULL expands to nullptr which cannot be cast to an int. Replace it with 0 in wcsfilecmp. Fixes issue #4136
This commit is contained in:
parent
652faa1a13
commit
0e954e4764
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ static int wcsfilecmp_leading_digits(const wchar_t **a, const wchar_t **b) {
|
|||
///
|
||||
/// Returns: -1 if a < b, 0 if a == b, 1 if a > b.
|
||||
int wcsfilecmp(const wchar_t *a, const wchar_t *b) {
|
||||
CHECK(a, NULL);
|
||||
CHECK(b, NULL);
|
||||
CHECK(a, 0);
|
||||
CHECK(b, 0);
|
||||
const wchar_t *orig_a = a;
|
||||
const wchar_t *orig_b = b;
|
||||
int retval = 0; // assume the strings will be equal
|
||||
|
|
Loading…
Reference in a new issue