FreeBSD Bugzilla – Attachment 180582 Details for
Bug 216056
textproc/randlm: fails to build with clang 4.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
svn-diff_textproc_randlm
svn-diff_textproc_randlm (text/plain), 4.83 KB, created by
Walter Schwarzenfeld
on 2017-03-07 02:35:00 UTC
(
hide
)
Description:
svn-diff_textproc_randlm
Filename:
MIME Type:
Creator:
Walter Schwarzenfeld
Created:
2017-03-07 02:35:00 UTC
Size:
4.83 KB
patch
obsolete
>Index: files/patch-BitArray.cpp >=================================================================== >--- files/patch-BitArray.cpp (nonexistent) >+++ files/patch-BitArray.cpp (working copy) >@@ -0,0 +1,11 @@ >+--- src/LDHT/BitArray.cpp.orig 2017-03-07 01:14:52 UTC >++++ src/LDHT/BitArray.cpp >+@@ -115,7 +115,7 @@ uint64_t BitArray::getLength() { >+ } >+ >+ bool BitArray::validArrayIndex(uint64_t index) { >+- if (index >= 0 && index <= getLength()) >++ if (index >= 1 && index <= getLength()) >+ return true; >+ else >+ return false; > >Property changes on: files/patch-BitArray.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-BloomMap.cpp >=================================================================== >--- files/patch-BloomMap.cpp (nonexistent) >+++ files/patch-BloomMap.cpp (working copy) >@@ -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_]; > >Property changes on: files/patch-BloomMap.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-LogFreqBloomFilter.cpp >=================================================================== >--- files/patch-LogFreqBloomFilter.cpp (nonexistent) >+++ files/patch-LogFreqBloomFilter.cpp (working copy) >@@ -0,0 +1,11 @@ >+--- src/RandLM/LogFreqBloomFilter.cpp.orig 2017-03-07 00:13:45 UTC >++++ src/RandLM/LogFreqBloomFilter.cpp >+@@ -207,7 +207,7 @@ namespace randlm { >+ >+ int LogFreqBloomFilter::getMaxHashes(int event_idx) { >+ // simple for unary encoding >+- assert(max_alpha_ > 0 && max_k_ > 0 && max_code_ > 0); >++ assert(max_alpha_ > 0 && max_k_ > 0 && max_code_ != NULL); >+ return max_alpha_ + (max_k_ * max_code_[event_idx]); >+ } >+ > >Property changes on: files/patch-LogFreqBloomFilter.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-RandLM.cpp >=================================================================== >--- files/patch-RandLM.cpp (nonexistent) >+++ files/patch-RandLM.cpp (working copy) >@@ -0,0 +1,11 @@ >+--- src/RandLM/RandLM.cpp.orig 2017-03-07 02:01:18 UTC >++++ src/RandLM/RandLM.cpp >+@@ -66,7 +66,7 @@ namespace randlm { >+ smoothing_name = kStupidBackoffSmoothing; >+ break; >+ case kWittenBellSmoothingCode: >+- smoothing_name == kWittenBellSmoothing; >++ smoothing_name = kWittenBellSmoothing; >+ break; >+ case kBackoffSmoothingCode: >+ smoothing_name = kBackoffSmoothing; > >Property changes on: files/patch-RandLM.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-TableChunkLocator.h >=================================================================== >--- files/patch-TableChunkLocator.h (nonexistent) >+++ files/patch-TableChunkLocator.h (working copy) >@@ -0,0 +1,11 @@ >+--- src/LDHT/TableChunkLocator.h.orig 2017-03-07 01:06:04 UTC >++++ src/LDHT/TableChunkLocator.h >+@@ -21,7 +21,7 @@ public: >+ int num_cells, >+ int num_chunks) = 0; >+ virtual int locateTableChunkForKey(uint64_t key) = 0; >+- >++ virtual ~TableChunkLocator(){}; >+ }; >+ >+ } // namespace LDHT. > >Property changes on: files/patch-TableChunkLocator.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 216056
: 180582