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 -0000 1.41 > +++ AIBase.cxx 10 Oct 2005 23:39:47 -0000 > @@ -398,7 +398,7 @@ > } > > int FGAIBase::_getID() const { > - return (int)(this); > + return (int)(long)this; > } > > 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 value. _______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d