[Top][All Lists]

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

Re: [Chicken-users] string-ref problem

From: felix
Subject: Re: [Chicken-users] string-ref problem
Date: Sat, 11 Jan 2003 22:44:35 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Joerg F. Wittenberger wrote:
Hi all,

I had more problems with string-ref and chicken.  Apparently it's
seriously broken.  I checked chicken.h in version 1.9 we have

#define C_make_character(c)       ((((c) & 0xff) << 8) | C_CHARACTER_BITS)
#define C_character_code(x)       (((x) >> 8) & 0xff)

1.10 shows

#define C_make_character(c)       ((((c) & 0xffff) << 8) | C_CHARACTER_BITS)
#define C_character_code(x)       (((x) >> 8) & 0xffff)

is there any reason not to change back?

This was, in fact, a preparatory "fix" for allowing 16-bit characters.
But it turned out to break "C_subchar()" which extracts a char from
a string and treated it as signed.

I fixed the latter, so the current CVS version should work, now.


reply via email to

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