Closed kraj closed 7 years ago
Fixes errors like
../../git/src/hash.cpp:282:19: error: ordered comparison between pointer and zero ('const unsigned char *' and 'int') if(fdht->base>0){
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This issue prevents compilation on macOS 10.13 (with Xcode 9). The fix in the pull request is correct. Alternatively, MAP_FAILED could be used instead of (void *) -1.
MAP_FAILED
(void *) -1
Please merge.
Fixes errors like
../../git/src/hash.cpp:282:19: error: ordered comparison between pointer and zero ('const unsigned char *' and 'int') if(fdht->base>0){