From e44ddcc2e78e0fc3302a67832cf018cb3ccda00c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 21 Dec 2017 21:17:31 +0000 Subject: Fix build of textproc/randlm with recent versions of clang. Approved by: portmgr blanket Submitted by: Walter Schwarzenfeld PR: 216056 MFH: 2017Q4 --- textproc/randlm/files/patch-BloomMap.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 textproc/randlm/files/patch-BloomMap.cpp (limited to 'textproc/randlm/files/patch-BloomMap.cpp') diff --git a/textproc/randlm/files/patch-BloomMap.cpp b/textproc/randlm/files/patch-BloomMap.cpp new file mode 100644 index 000000000000..cd141fe5f18d --- /dev/null +++ b/textproc/randlm/files/patch-BloomMap.cpp @@ -0,0 +1,11 @@ +--- src/RandLM/BloomMap.cpp.orig 2017-03-07 00:13:58 UTC ++++ src/RandLM/BloomMap.cpp +@@ -272,7 +272,7 @@ namespace randlm { + + bool BloomMap::computePaths() { + // determine the path lengths based on distribution for codes of each type +- assert(stats_counters_ && root_ == NULL && max_code_ > 0); ++ assert(stats_counters_ && root_ == NULL && max_code_ != NULL); + code_to_leaf_ = new uint64_t*[num_events_]; + code_to_path_len_ = new int*[num_events_]; + code_to_bound_ = new int*[num_events_]; -- cgit v1.2.3