Re: [GD-Windows] VC 2005 Warning C4244
Brought to you by:
vexxed72
From: Mat N. <mat...@bu...> - 2008-01-16 19:20:57
|
If the error message is "warning C4244: 'argument' : conversion from 'long'= to 'u_short', possible loss of data" or the equivalent, then 'x' is not a = u_short or smaller. Otherwise, this compiles without warnings in an otherwise empty VS2005 cons= ole project. MSN -----Original Message----- From: gam...@li... [mailto:gamedevlis= ts-...@li...] On Behalf Of Dan Glastonbury Sent: Thursday, December 13, 2007 2:46 PM To: Game Development for MS Windows Subject: Re: [GD-Windows] VC 2005 Warning C4244 > You can disable the warning using a #pragma: > > #pragma warning(disable : 4244)//double to float Sure, I know I can disable the warning. But I was looking for a way of not disabling the warning. I want to know about legitimate problems, but in this case of assigning the result of a function that returns a short to a short variable this warning is spurious. cheers DanG -- Dan Glastonbury, Dan dot Glastonbury at gmail dot com `Pour encourjay lays ortras' ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac= e _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |