File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef LCH_H
2
2
#define LCS_H
3
3
4
+ #include < algorithm>
5
+
4
6
#include " Matrix.h"
5
7
#include " RandomAccessSequence.h"
6
8
#include " DiffErr.h"
11
13
#include < list>
12
14
13
15
14
- // TODO get rid of these
15
- #define max (N,M ) ((N)>(M)? N : M)
16
- #define min (N,M ) ((N)<(M)? N : M)
17
-
18
16
typedef NegIndexVector<uint32_t > Vector;
19
17
20
18
/* *
@@ -219,8 +217,8 @@ class MyersAlgorithm {
219
217
int32_t kEnd = k_end ();
220
218
221
219
// Only check the diagonals that have been walked in the other direction
222
- int32_t kb = max (size_delta - kEnd , kBegin );
223
- int32_t ke = min (size_delta - kBegin , kEnd );
220
+ int32_t kb = std:: max (size_delta - kEnd , kBegin );
221
+ int32_t ke = std:: min (size_delta - kBegin , kEnd );
224
222
225
223
for (int k = kb; k <= ke; k++) {
226
224
int k_r = size_delta - k;
You can’t perform that action at this time.
0 commit comments