Hello,
While developing a code based on Irrlicht 1.5, I found something that could be a bug. I'm not sure, I can be wrong, it's your decision.
The allegedly erroneous code is located at the source "os.cpp".
This is the last "#else" it defines "bswap_16(X)."
It shows something like the following:
#define bswap_16 (X) ((((X) & 0xFF) <<8) | (((X) & = 0xFF00)>> 8))
Inside there is a symbol made equal (=) in the second member, after the symbol |, next to the symbol &.
Is this a sign of more? Have you cast this bug? I get the impression that it is, since bswap_32 (X) is not included.
I hope I have helped somewhat.
[fixed]Chasing a bug in os.cpp
Re: Chasing a bug in os.cpp
Sure looks like a bug to me. That said, I wish stuff like this was written as an inline function intead of a macro...Jesus.Net wrote:Code: Select all
#define bswap_16 (X) ((((X) & 0xFF) <<8) | (((X) & = 0xFF00)>> 8))
Travis
Re: Chasing a bug in os.cpp
Not a bad idea, vitek, i never understood why this is here.vitek wrote:Sure looks like a bug to me. That said, I wish stuff like this was written as an inline function intead of a macro...Jesus.Net wrote:Code: Select all
#define bswap_16 (X) ((((X) & 0xFF) <<8) | (((X) & = 0xFF00)>> 8))
Travis