fix compiler warning on 32bit arch