Date: Sun, 18 Jul 1999 11:46:59 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Mark cc: djgpp AT delorie DOT com Subject: Re: still got double buffering prob. in 13h mode. In-Reply-To: <3.0.1.32.19990718140429.00686920@apiitkl.edu.my> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 18 Jul 1999, Mark wrote: > I replaced the '*double_buffer' with plain 'double_buffer', but while > compiling it comes back with: > > 48:warning: passing arg 2 of 'movedata' makes integer from pointer without > a cast. You need to use an explicit cast, like this: movedata(_my_ds(), (unsigned long)double_buffer, screen, 0, 320*200); > (This is why I initially used the '*double_buffer') Randomly poking around your code is usually a bad way to solve problems. You need to understand the diagnostics printed by GCC, and then correct the problem it complains about, not make some random change in the code that makes the warning go away...