Fix overflow check.

The fixed check assumes positive sizes. The previous check failed when
one of the sizes was 0.
Merge pull request #38 from mainland/master

Fix overflow check.