Skip to content

Commit 0badea2

Browse files
committed
Updated weighting schemes
1 parent cc23fa7 commit 0badea2

File tree

5 files changed

+5254
-3221
lines changed

5 files changed

+5254
-3221
lines changed

extern/coder_array.h

-8
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,6 @@ class data_ptr {
116116
data_ = new_data;
117117
capacity_ = _n;
118118
owner_ = true;
119-
} else if (_n == 0) {
120-
// X. Jiao: Deallocate array if capacity is zero
121-
if (owner_) {
122-
CODER_DELETE(data_);
123-
}
124-
data_ = NULL;
125-
capacity_ = _n;
126-
owner_ = true;
127119
}
128120
}
129121
void resize(SZ _n) {

extern/m2c_lib.h

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#else
1414

15+
#include <stdexcept>
16+
1517
#ifndef M2C_SKIP_THREAD_ID
1618
#define M2C_PRINT_THREAD_ID 1
1719
#else

0 commit comments

Comments
 (0)