gateway: always deal with 64bit scaled path costs