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

John Zhao johnthu at gmail.com
Tue Jun 9 23:23:23 UTC 2015


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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150609/33408945/attachment.html>


More information about the GraphHopper mailing list