the numberOfPairs may not be negative when numberOfPairs*2 is negative
Merge pull request #289 from levelup/double-negative

the numberOfPairs may not be negative when numberOfPairs*2 is negative