Skip to content

Commit

Permalink
Merge pull request #361 from kraj/master
Browse files Browse the repository at this point in the history
Fix errors found by clang
  • Loading branch information
jessek authored Aug 24, 2017
2 parents 36350d4 + 6ef69a2 commit 8776134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ void file_data_hasher_t::hash()
MAP_FILE|
#endif
MAP_SHARED,fd,0);
if(fdht->base>0){
if(fdht->base != (void *) -1){
/* mmap is successful, so set the bounds.
* if it is not successful, we default to reading the fd
*/
Expand Down

0 comments on commit 8776134

Please sign in to comment.