<blockquote>
<p>osm2pgsql SVN version <a href="https://github.com/openstreetmap/osm2pgsql/commit/af61cae" class="commit-link"><tt>af61cae</tt></a> (64bit id space)</p>
</blockquote>
<p><a href="https://github.com/openstreetmap/osm2pgsql/commit/af61cae" class="commit-link"><tt>af61cae</tt></a> is from December 2012, so that's probably related. I don't run osm2pgsql on Windows so I can't suggest a download location, but you need a more recent version.</p>
<p>That version might be old enough that it doesn't support 64-bit node IDs, which would cause all sorts of problems.</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/117#issuecomment-33406094'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4046574__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNjM4MDgxMiwiZGF0YSI6eyJpZCI6MjQxMTIxNDJ9fQ==--ca6e924384230df9e66e2a36ae4a56f09d003010.gif' height='1' width='1'></p>