#285 64-bit problem in Serialize.cpp

closed-fixed
nobody
None
5
2007-06-24
2007-02-28
hellcatv
No

the sizeof(long) on a 64 bit machine is 8 bytes rather than 4 bytes...

ideally long would never be used in the savegame format---is there a way I can help to audit this or that you guys can make sure that long is not actually used in a savegame.

+//BOOST_STATIC_ASSERT(sizeof(long) == 4);

it would be nice to be able to have x86 compatible games on the up and coming amd64(x86-64) architectures :-)

Discussion

  • Geoff Topping

    Geoff Topping - 2007-06-24
    • status: open --> closed-fixed
     
  • Geoff Topping

    Geoff Topping - 2007-06-24

    Logged In: YES
    user_id=913462
    Originator: NO

    This change has been made in SVN, with a comment warning not to use longs

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks