Fix assert failure on 64-bit systems