GCC-4.0.x Issues Internal Cmod conversion problem solved?

General discussion about Celestia that doesn't fit into other forums.
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #21by chris » 23.11.2006, 08:06

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

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

re

Post #22by John Van Vliet » 23.11.2006, 23:06

modelfile.cpp in cvs

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)


Return to “Celestia Users”