On 16.01.2011 20:49, Jon Burgess wrote:
On Sun, 2011-01-16 at 20:08 +0100, Stephan Knauss wrote:
Would changing all these magic numbers into 19 do the trick? I would
skip the twopow array. Or will I be breaking something not that obvious?
I'm afraid I can not answer that.
It did break on an integer overflow as all numbers are just 32 bit
unsigned int.
I made the fourpow and twopow bigger, that helped a lot.
Also used the MAX_ZOOM define instead of all the 18s in the code.
Tested with z19. I also expect it to work with z20, but did not test it.
z20 would need 2GB more memory than z19.
Available in SVN.
Stephan
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev