Mail Archives: djgpp/1999/07/18/04:49:31
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 -