Fix an off-by-one error in the WhereCost to integer conversion.
FossilOrigin-Name: b5ca80d924f8c6d31f036247ba6e20d234f4482e
This commit is contained in:
@@ -73,7 +73,7 @@ WhereCost whereCostFromInteger(int x){
|
||||
}
|
||||
static unsigned long int whereCostToInt(WhereCost x){
|
||||
unsigned long int n;
|
||||
if( x<=10 ) return 1;
|
||||
if( x<10 ) return 1;
|
||||
n = x%10;
|
||||
x /= 10;
|
||||
if( n>=5 ) n -= 2;
|
||||
|
||||
Reference in New Issue
Block a user