Hi Ticker,

I've never tried to understand that code, but yes, masking a position looks 
wrong.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-boun...@lists.mkgmap.org.uk> im Auftrag von Ticker 
Berkin <rwb-mkg...@jagit.co.uk>
Gesendet: Montag, 18. Oktober 2021 10:52
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] java.lang.AssertionError while building index from 
unicode tiles

Hi Gerd

In imgfmt/app/srt/Sort.java around line 853:

        // Get the first non-ignorable at this level
        int c = chars[pos++ & 0xff];
        if (!hasPage(c >>> 8)) {

I'm at a loss to understand the 0xff mask! am I missing something?

Ticker




_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to