fix 64bit warnings