From fe18c6348146c2efa8d94a5af1b087d23a59a0a9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 19 Feb 2011 12:30:56 +0000 Subject: [PATCH] safety: movpos: use new movposcomb_feature_posn function as applicable; no functional change --- hostside/movpos.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hostside/movpos.c b/hostside/movpos.c index 75a139d..d487e0a 100644 --- a/hostside/movpos.c +++ b/hostside/movpos.c @@ -768,8 +768,8 @@ static int change_needed(int featix, const MovFeatInfo *feati, int r; r= (startpointunk & unkfeatbit(featix)) || - (target / feati->weight) % feati->posns - - (startpointpos / feati->weight) % feati->posns; + movposcomb_feature_posn(feati, target) - + movposcomb_feature_posn(feati, startpointpos); if (DEBUGP(movpos,eval)) DPRINTFA(" { %s:%s(%d*%d) %d..%d => %d }", @@ -841,7 +841,7 @@ static ErrorCode indep_prepare(Segment *move, MovPosComb target, DPRINTF2("%s?", feati->pname); else DPRINTF2("%s%d", feati->pname, - startpointpos / feati->weight % feati->posns); + movposcomb_feature_posn(feati, startpointpos)); } } } @@ -854,7 +854,7 @@ static ErrorCode indep_prepare(Segment *move, MovPosComb target, startpointpos,startpointunk, target)) continue; - MovPosComb posn= target / feati->weight % feati->posns; + MovPosComb posn= movposcomb_feature_posn(feati, target); Method *meth= feature_method(feati); int methi; @@ -1207,7 +1207,7 @@ void movpos_reportall(void) { if (SOMEP(seg->movposcomb)) { for (feat=0; feati->n_movfeats; feat++) { const MovFeatInfo *feati= &seg->i->movfeats[feat]; - MovPosComb posn= (seg->movposcomb / feati->weight) % feati->posns; + MovPosComb posn= movposcomb_feature_posn(feati, seg->movposcomb); ouposn_feat(seg, feati, posn, feature_method(feati)); } } -- 2.30.2