cython scan: use int64 to don't limit the size of inputs