[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: char vs. unsigned char
From: |
Luboš Doležel |
Subject: |
Re: char vs. unsigned char |
Date: |
Thu, 12 Mar 2015 22:39:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 03/12/2015 08:11 PM, Riccardo Mottola wrote:
> Hi,
>
> a developer question. I got LuserNET working again! another application
> almost saved from bitrot :)
>
> I get however a lot of warnings about signedess in char*. In several
> palces data buffers are specified as unsigned char, while in other
> places data coming from those buffers is used as char*, including when
> passing to C functions like atoi().
>
> My simple knowledge would say that usually one can just use char* when
> treating the content as binary or as string. While signeddess matters
> when numbers are stored.
>
> I converted many buffers and structs. Everything continues to work as
> far as I can see.
>
> Could someone comment? check my patch at least by skimming over it?
>
> I wonder why these were declared as unsigned as first.
>
> Riccardo
>
Looks OK to me!
--
Luboš Doležel