delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/18/04:49:31

Date: Sun, 18 Jul 1999 11:46:59 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mark <rhosts AT bigfoot DOT com>
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: <Pine.SUN.3.91.990718114210.19517Y-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019