View | Details | Raw Unified | Return to bug 216056
Collapse All | Expand All

(-)files/patch-BitArray.cpp (+11 lines)
Line 0 Link Here
1
--- src/LDHT/BitArray.cpp.orig	2017-03-07 01:14:52 UTC
2
+++ src/LDHT/BitArray.cpp
3
@@ -115,7 +115,7 @@ uint64_t BitArray::getLength() {
4
 }
5
 
6
 bool BitArray::validArrayIndex(uint64_t index) {
7
-    if (index >= 0 && index <= getLength())
8
+    if (index >= 1 && index <= getLength())
9
         return true;
10
     else
11
         return false;
(-)files/patch-BloomMap.cpp (+11 lines)
Line 0 Link Here
1
--- src/RandLM/BloomMap.cpp.orig	2017-03-07 00:13:58 UTC
2
+++ src/RandLM/BloomMap.cpp
3
@@ -272,7 +272,7 @@ namespace randlm {
4
   
5
   bool BloomMap::computePaths() {
6
     // determine the path lengths based on distribution for codes of each type
7
-    assert(stats_counters_ && root_ == NULL && max_code_ > 0);
8
+    assert(stats_counters_ && root_ == NULL && max_code_  != NULL);
9
     code_to_leaf_ = new uint64_t*[num_events_];
10
     code_to_path_len_ = new int*[num_events_];
11
     code_to_bound_ = new int*[num_events_];
(-)files/patch-LogFreqBloomFilter.cpp (+11 lines)
Line 0 Link Here
1
--- src/RandLM/LogFreqBloomFilter.cpp.orig	2017-03-07 00:13:45 UTC
2
+++ src/RandLM/LogFreqBloomFilter.cpp
3
@@ -207,7 +207,7 @@ namespace randlm {
4
 
5
   int LogFreqBloomFilter::getMaxHashes(int event_idx) {
6
     // simple for unary encoding
7
-    assert(max_alpha_ > 0 && max_k_ > 0 && max_code_ > 0);
8
+	assert(max_alpha_ > 0 && max_k_ > 0 && max_code_ != NULL);
9
     return max_alpha_ + (max_k_ * max_code_[event_idx]);
10
   }
11
 
(-)files/patch-RandLM.cpp (+11 lines)
Line 0 Link Here
1
--- src/RandLM/RandLM.cpp.orig	2017-03-07 02:01:18 UTC
2
+++ src/RandLM/RandLM.cpp
3
@@ -66,7 +66,7 @@ namespace randlm {
4
       smoothing_name = kStupidBackoffSmoothing;
5
       break;
6
     case kWittenBellSmoothingCode:
7
-      smoothing_name == kWittenBellSmoothing;
8
+      smoothing_name = kWittenBellSmoothing;
9
       break;
10
     case  kBackoffSmoothingCode:
11
       smoothing_name = kBackoffSmoothing;
(-)files/patch-TableChunkLocator.h (+11 lines)
Line 0 Link Here
1
--- src/LDHT/TableChunkLocator.h.orig	2017-03-07 01:06:04 UTC
2
+++ src/LDHT/TableChunkLocator.h
3
@@ -21,7 +21,7 @@ public:
4
                          int num_cells,
5
                          int num_chunks) = 0;
6
     virtual int locateTableChunkForKey(uint64_t key) = 0;
7
-
8
+	virtual ~TableChunkLocator(){};
9
 };
10
 
11
 }  // namespace LDHT.

Return to bug 216056