--- gclib/GAlnExtend.cpp 2011/10/10 19:34:20 104 +++ gclib/GAlnExtend.cpp 2011/10/11 19:50:14 109 @@ -230,7 +230,7 @@ nificantly better than this */ max_dist = GMIN(GREEDY_MAX_COST, - len2 / GREEDY_MAX_COST_FRACTION + 1); + (len2/GREEDY_MAX_COST_FRACTION + 1)); /* the main loop assumes that the index of all diagonals is biased to lie in the middle of allocated bookkeeping @@ -888,7 +888,8 @@ reward, penalty, s_ext_r, q_ext_r, *gxmem, ed_script_fwd); //check extension here and bail out if not a good right extension //assuming s_max is really at the right end of s_seq - if (trim!=NULL && trim->type==galn_TrimRight && s_alnstart+s_ext_rboundary) { + if (trim!=NULL && trim->type==galn_TrimRight && + s_alnstart+s_ext_rboundary) { delete ed_script_fwd; if (freeAlnMem) delete gxmem; return NULL;