Use -1L instead of (long) -1