[Top][All Lists]

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

RE: [avr-gcc-list] are signed chars signed :-) ?

From: Bernard Fouché
Subject: RE: [avr-gcc-list] are signed chars signed :-) ?
Date: Tue, 7 Sep 2004 09:04:01 +0200

Well you're right however I'm working on a project I did not start and I did
not plan to change all char to int8_t but I think that I'll do it.

Now I was using 'char' because I wanted something signed and it was not. It
came from the Makefile provided with Winavr: it forces char to unsigned char
thru gcc options. I'm working on Linux now, but I started to move from ICC
to avr-gcc on Win32. When I moved to Linux I kept the same Makefile.

I think it's quite a trap to place such an option in a default Makefile. Now
I'm quite old now and maybe youngsters do not use char any more :-)

-----Message d'origine-----
De : address@hidden
[mailto:address@hidden la part de Ulrich Schweitzer
Envoyé : mardi 7 septembre 2004 08:25
À : address@hidden
Objet : Re: [avr-gcc-list] are signed chars signed :-) ?

On Monday 06 September 2004 20:12, Bernard Fouché wrote:
> I just understood that 2 minutes ago by looking at the avr-libc source!
> First time that I encounter such an environment! I have to go thru all
> my code to modify 'char' to 'signed char'.

I'm wondering, why people use char for 8 bit integer variables. Isn't that
what int8_t and uint8_t are for?

PGP key ID: 0xDF6FC4FA

"A mouse is a device used to select the xterm you want to type in."
Author unknown

avr-gcc-list mailing list

reply via email to

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