Fix a unit test on 32-bit platforms