chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] signed-char* not handled correctly


From: Daniel B. Faken
Subject: Re: [Chicken-users] signed-char* not handled correctly
Date: Mon, 25 Jul 2005 10:47:26 -0400 (EDT)

On Mon, 25 Jul 2005, felix winkelmann wrote:
> On 7/22/05, Daniel B. Faken <address@hidden> wrote:
> > Hello,
> > 
> >   I've been encountering problems using the FFI with functions that take a
> > (signed char *).  For example, with this short program:
> > -----------------------
> > (define-foreign-type GLbyte signed-char)
> > #>!
> > typedef signed char GLbyte;
> > int call_fn(GLbyte x, GLbyte *y);
> > <#
> > ------------------------
> 
> Does the C compiler fail with an error, or is this just a warning?

Just a warning (I should have been more clear).

And that is probably ignoreable, if annoying.  I'm not sure what 
would/could happen with (char)<->(unsigned char) conversions that are 
silently allowed, though.

cheers,
Daniel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]