branches: 1.2.4; 1.2.10; 1.2.22;Fix signed/unsigned warnings. Discover bug where < 0 case cannot happen,and change it to >= 0 as intended.