Code bugs in console.h
by Jason Swearingen · in Torque Game Builder · 07/29/2005 (10:09 pm) · 1 replies
Fyi, i found a few bugs in platform.h that are pretty easy fixes.
Here are the fixes: (t2d 1.02 i dont have tge so i dont know if it exists there)
platform.h line 50
return S16(convertBEndianToHost(U16(i))); //TCMOD fix bug? was return S16(convertBEndianToHost(S16(i)));
platform.h line 76
return S32(convertBEndianToHost(U32(i))); //TCMOD fix bug? was return S32(convertBEndianToHost(S32(i)));
both of these bugs (fixed in the lines above) would cause an infinate loop if they were hit in code.
note: typo in the subject of this thread, the bug is in PLATFORM.H
Here are the fixes: (t2d 1.02 i dont have tge so i dont know if it exists there)
platform.h line 50
return S16(convertBEndianToHost(U16(i))); //TCMOD fix bug? was return S16(convertBEndianToHost(S16(i)));
platform.h line 76
return S32(convertBEndianToHost(U32(i))); //TCMOD fix bug? was return S32(convertBEndianToHost(S32(i)));
both of these bugs (fixed in the lines above) would cause an infinate loop if they were hit in code.
note: typo in the subject of this thread, the bug is in PLATFORM.H
Torque Owner Chris "Hyena" Vogel