Make a safer comparison for 32 bit architectures

This should not be an issue, but do the right thing anyway.