Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Build error with git-84ed1a7
10-22-2013, 02:00 PM,
#2
RE: Build error with git-84ed1a7
(10-22-2013, 12:02 PM)tomlowshang Wrote:
Code:
    CPP build/carsound.o
src/carsound.cpp: In member function ‘void CarSound::Update(const CarDynamics&, float)’:
src/carsound.cpp:332:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
src/carsound.cpp:336:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = grasssound;
                 ^
src/carsound.cpp:341:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = gravelsound;
                 ^
src/carsound.cpp:346:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
src/carsound.cpp:352:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = grasssound;
                 ^
src/carsound.cpp:358:17: error: cannot convert ‘unsigned int [4]’ to ‘size_t* {aka long unsigned int*}’ in assignment
    sound_active = tiresqueal;
                 ^
scons: *** [build/carsound.o] Error 1
scons: building terminated because of errors.
Any suggestions as to what I am doing wrong?
Yeah, that sound selection code wasn't 64bit safe. I've pushed a fix.
Reply


Messages In This Thread
Build error with git-84ed1a7 - by tomlowshang - 10-22-2013, 12:02 PM
RE: Build error with git-84ed1a7 - by NaN - 10-22-2013, 02:00 PM
RE: Build error with git-84ed1a7 - by tomlowshang - 10-22-2013, 10:18 PM
RE: Build error with git-84ed1a7 - by NaN - 10-23-2013, 07:30 AM
RE: Build error with git-84ed1a7 - by tomlowshang - 10-23-2013, 09:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)