From 0e954e47640f4fc05d9e9d4c59ad06069a22826f Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 17 Jun 2017 09:03:37 -0600 Subject: [PATCH] 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 --- src/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 98ff50988..550c1830b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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