Thanks, John.

I have just removed the exception as before you will get a problem there
you get surely an OOM ;)

Kind Regards,
Peter

On 10.06.2015 01:23, John Zhao wrote:
> Hi,
>
> I am looking at the NameIndex.
> The pointer is long.
>
> private long bytePointer = START_POINTER;
>
> if (bytePointer < 0)
        {
            throw new
> IllegalStateException("Way index is too large. Cannot contain more
> than 2GB");
        }
>
> if bytePointer < 0, it could be larger than 2^63, way more than 2GB
>
> *Best Regards,*
> *ZhiQiang ZHAO*
>
>
> _______________________________________________
> GraphHopper mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/graphhopper

_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to