[GraphHopper] The logic and comment are not the same meaning.

Peter graphhopper at gmx.de
Wed Jun 10 08:11:59 UTC 2015


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
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150610/e7dd39aa/attachment.html>


More information about the GraphHopper mailing list