Andy Ross wrote:
This fix can't be checked in though, because it isn't correct*. The
generated ID is not guaranteed to be unique. The right solution would
be to either change the type of the ID to a "long long" or "uint64_t",
or generate an identifier from something other than the pointer valu
Hi Andy,
thanks for the hint and "patch". I should have searched in the mail archive.
With the "patch" it compiles fine.
Thanks
Matthias
> This is a known bug when compiling on a 64 bit system. I fix it in my
> tree by double casting:
>
> --- AIBase.cxx 5 Sep 2005 13:25:09 - 1.4
Matthias Boerner wrote:
> I tried to compile a new CVS snapshot of FlightGear. I got following
> error message:
> AIBase.cxx: In member function ‘int FGAIBase::_getID() const’:
> AIBase.cxx:401: error: cast from ‘const FGAIBase*’ to ‘int’ loses precision
This is a known bug when compiling on a 64
Hi all,
I tried to compile a new CVS snapshot of FlightGear. I got following error
message:
Making all in AIModel
make[2]: Entering directory
`/home/boerner/scr/cvs/FlightGear/FlightGear-0.9/source/src/AIModel'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src
-I/opt/Flig