[OSM-dev] Is YOUR code 64 bit proof?

Andrew andrewhainosm at hotmail.co.uk
Sun Dec 30 20:26:12 GMT 2012


David Earl <david <at> 
frankieandshadow.com> writes:

> 
> On Thu Dec 27 13:55:31 GMT 2012 
Frederik Ramm wrote
> >     another 62 million nodes and we'll 
have IDs of more than 2^31-1
> > which means than software using a 
simple, 32-bit, signed integer will
> > not be able to process the data any 
longer.
> 
> If you're using PHP, you have to use 
64-bit hardware to get 64 bit 
> integers, which they all then are 
automatically. I believe it is not 
> possible to get 64 bit integers in PHP 
on a 32-bit machine.
> 
> David
> 

Could you store node numbers as 
strings?
--
Andrew




More information about the dev mailing list