[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
char vs. unsigned char
From: |
Riccardo Mottola |
Subject: |
char vs. unsigned char |
Date: |
Thu, 12 Mar 2015 20:11:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32.1 |
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
signed-chars.patch
Description: Text Data
- char vs. unsigned char,
Riccardo Mottola <=
- Re: char vs. unsigned char, Luboš Doležel, 2015/03/12
- Re: char vs. unsigned char, David Chisnall, 2015/03/13
- Re: char vs. unsigned char, Richard Frith-Macdonald, 2015/03/13
- Re: char vs. unsigned char, Wolfgang Lux, 2015/03/13
- Re: char vs. unsigned char, Sebastian Reitenbach, 2015/03/13