#1 esco does not compile on 64-bit

closed-fixed
None
5
2010-09-29
2008-03-24
AnMaster
No

~/src/esco-0.50 $ make
make all-recursive
make[1]: Entering directory `/home/anmaster/src/esco-0.50'
Making all in src
make[2]: Entering directory `/home/anmaster/src/esco-0.50/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -pipe -march=k8 -O2 -msse3 -MT bfmachine.o -MD -MP -MF .deps/bfmachine.Tpo -c -o bfmachine.o bfmachine.cpp
bfmachine.cpp: In member function 'int BFMachine::whileBegin()':
bfmachine.cpp:137: error: cast from 'Source*' to 'int' loses precision
make[2]: *** [bfmachine.o] Error 1
make[2]: Leaving directory `/home/anmaster/src/esco-0.50/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anmaster/src/esco-0.50'
make: *** [all] Error 2

A int is 32-bit on x86_64, a pointer is 64-bit. use intptr_t for a int wide enough to fit a pointer in.

Discussion

  • Zasenko Sergey

    Zasenko Sergey - 2010-07-31
    • assigned_to: nobody --> und3f
     
  • Zasenko Sergey

    Zasenko Sergey - 2010-07-31

    Will fix in few days

     
  • Zasenko Sergey

    Zasenko Sergey - 2010-07-31
    • status: open --> open-accepted
     
  • Zasenko Sergey

    Zasenko Sergey - 2010-07-31

    Fixed in revision 4ed574387c4e3cd7f24c3ffd6eded9563bcc09c3
    Please, check git. I can't find 64-bit tester :(

     
  • Zasenko Sergey

    Zasenko Sergey - 2010-07-31
    • status: open-accepted --> pending-fixed
     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks