fixed compiler warning on 64bit