r197: added an assertion test/suppressed warnings

This commit is contained in:
Heng Li
2020-04-05 12:22:28 -04:00
parent 16a3d58dc9
commit 31356f9e02
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#include <pthread.h>
#define HA_VERSION "0.3.0-dirty-r196"
#define HA_VERSION "0.3.0-dirty-r197"
#define VERBOSE 0
#define VERBOSE_GFA 1
+3 -3
View File
@@ -900,8 +900,8 @@ long long* r_y_pos_beg, long long* r_y_pos_end)
uint32_t xLeftBeg, xLeftLen, yLeftBeg, yLeftLen;
uint32_t xRightBeg, xRightLen, yRightBeg, yRightLen;
uint64_t totalWeigth;
double xLeftMatch, xLeftTotal, yLeftMatch, yLeftTotal;
double xRightMatch, xRightTotal, yRightMatch, yRightTotal;
double xLeftMatch = 0, xLeftTotal = 0, yLeftMatch = 0, yLeftTotal = 0;
double xRightMatch = 0, xRightTotal = 0, yRightMatch = 0, yRightTotal = 0;
asg_arc_t_offset* arch = NULL;
for (i = hap_can->index_beg, totalWeigth = 0; i <= hap_can->index_end; i++)
@@ -964,7 +964,7 @@ long long* r_y_pos_beg, long long* r_y_pos_end)
&yRightMatch, &yRightTotal);
max_count = xLeftMatch + yRightMatch;
min_count = xLeftTotal + yRightTotal;
}
} else abort();
hap_can->weight = hap_can->index_beg = 0;