<p>Ok so what needs to be changed in</p>

<p>#define NUM_BLOCKS (((osmid_t)1) << (36 - BLOCK_SHIFT))</p>

<p>To handle larger than 36 bit ID's.</p>

<p>Logically it would be the 36 to say 40 or 64 for 40 bit and 64 bit respectively</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/23#issuecomment-17311970'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/g8smGCFOcVLF28Q-xX3zcbZOnvEVErrIUIS9wQQhfruEaCskRN1O6s3fgNd_i91K.gif' height='1' width='1'></p>