Another way to say "a rifle has a longer range than a pistol" is "A pistol has a shorter range than a rifle."