Fix compilation warning on 64bit

Format specifier .* expects int, but poiner differences are long int.