fix incorrect compatibility check for major versions

add compatibility check - resolves #477

(0) -100 -30 -10 -2 +2 +10 +30 tip

mercurial