On Sunday 21 January 2007 12:58, Nick Warne wrote: > Hi All, > > I get a few warnings when building fgfs (gcc-3.4.6), all to do with int > conversion: > > > FGInitialCondition.cpp:806: warning: converting to `int' from `double' > 806: n = document->FindElementValueAsNumber("running"); > fix: > n = (int)document->FindElementValueAsNumber("running"); > > > FGInput.cpp:209: warning: converting to `unsigned int' from `double' > 209: port = element->GetAttributeValueAsNumber("port"); > fix: > port = (unsigned int)element->GetAttributeValueAsNumber("port"); > > > renderer.cxx:1021: warning: converting to `unsigned int' from `double' > 1021: y = viewport->height() - y; > fix: > y = (int)viewport->height() - y;
Tut... y = (unsigned int) viewport->height() - y; Nick ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel