I thought this problem was already solved by using the conversion functions in bytes.h . . . (though that change went into Celestia 1.5.0, not 1.4.1)
--Chris
GCC-4.0.x Issues Internal Cmod conversion problem solved?
- John Van Vliet
- Posts: 2944
- Joined: 28.08.2002
- With us: 22 years 2 months
re
modelfile.cpp in cvs
and in celestia/src/celutil/bytes.h
Code: Select all
static float readFloat(istream& in)
{
float f;
in.read((char*) &f, sizeof(float));
LE_TO_CPU_FLOAT(f, f);
return f;
}
and in celestia/src/celutil/bytes.h
Code: Select all
#define LE_TO_CPU_FLOAT(ret, val) SWAP_FLOAT(ret, val)