From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Windows ME and DJGPP Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <3a78130f DOT 16030234 AT news DOT freeserve DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 X-Trace: /wLwTaHwPYzeHfGCQR0hMSW8TQwCpxcrt+mCO9Qw0iWc48yIDZdknTORSLQunS9LHzybQMAYZdRv!JVHauo/et3o3MdaCXes4mkRkNKZUq11degBq/1zcCOBd1pdthM4HrFRiF8yFPQG0Q1X154aXE5CV!76DqDg== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 31 Jan 2001 21:09:33 GMT Distribution: world Date: Wed, 31 Jan 2001 21:09:33 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 31 Jan 2001 13:29:12 GMT, dontmailme AT iname DOT com (Steamer) wrote: >Eli Zaretskii wrote: > >> Hmm? Is this in C or in C++? I don't think you need any casts in a C >> program for assigning int to a double or the other way around. > >Nor do you in C++. It's strange that GCC chooses to warn about >this in C++ but not in C. Most likely to support overloading a method or other function that can take an int or a double. Also because a double can lose significant figures when cast to int (MSVC does this too in C code). -- Windows CE + Windows ME + Windows NT = CEMENT http://www.geocities.com/rcwoolley/