Re: VC 2005 Warning C4244

Mat Noguchi <[email protected]> Wed, 16 Jan 2008 11:20:55 -0800
Newsgroups gmane.games.devel.windows
Message-ID <D7F4D9E414140644BF099886C28C663617E55558D3@bngexchange01.bungie.bng.local>
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 console project.

MSN
-----Original Message-----
From: [email protected] [mailto:[email protected]] 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/marketplace
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555