fix compare on 32bit arch