[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Shouldn't "char*" be "unsigned char*"?
- From: Matthias Kluwe <mkluwe@...>
- Date: Wed, 25 May 2011 16:23:49 +0200
2011/5/25 Matthias Kluwe <mkluwe@gmail.com>:
> Hi!
>
> 2011/5/24 Dirk Laurie <dpl@sun.ac.za>:
>> Sorry for betraying my newbie-ness, this question was probably asked
>> fifteen years ago.
>>
>> In the Lua API, Lua strings are mapped to C "char*". Is this just a
>> historical accident or a closely reasoned decision, such as that the
>> convenience of the test "if (c<0)" to detect non-ASCII [...]
>
> Don't assume that char is signed... That is platform and compiler specific.
Oops, just noticed Rob already mentioned this point. Apologies for the noise.