Mail Archives: djgpp/1999/03/07/08:18:51
On Sun, 7 Mar 1999, Manni Heumann wrote:
> In article <36E1A14F DOT 2CA5 AT hotmail DOT com>, "A.L.A. Corp. / A.S.A. Inc." <a_azevedo AT hotmail DOT com> wrote:
> 
> >DJGPP COMPILER SAYS:
> >
> >Warning:  passing arg 1 of `logoasa' makes pointer from integer without
> >a cast
[snip]
> >logoasa('G',26);
> 
> argument one is a char.
A char is just a small integer.
> I admit, that DJGPP's warning might be a little confusing, but it is right.
``Confusing''?  How?  'G' is an integer whose value is the ASCII code of 
the character G.  The function `logoasa' expects a pointer, but gets an 
integer.  This is exactly what GCC says.
- Raw text -