xcode can not build section

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

xcode can not build section

Post by feelthat »

build on Xcode 4.2

in CXMeshFileLoader.cpp

f32 CXMeshFileLoader::readFloat()

//const f32 tmp = *(f32 *)P; //run fail~~

//need change to
f32 tmp;
memcpy(&tmp, P, 4);
Last edited by feelthat on Sat Aug 29, 2015 7:29 pm, edited 1 time in total.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: xcode can not build section

Post by CuteAlien »

Which error do you get?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: xcode can not build section

Post by feelthat »

sorry

is run error not build error

can not get correct value~~~
CuteAlien wrote:Which error do you get?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: xcode can not build section

Post by CuteAlien »

But why would it be wrong? This looks suspicious - maybe not yet the real bug. Because if the rest works as it should your code should not get another result with your change. Unless I'm not seeing it.

Also if this is wrong then we have a lot more places where it's wrong.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply