[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Bug in avr-gcc
From: |
Martin Bammer |
Subject: |
Re: [avr-gcc-list] Bug in avr-gcc |
Date: |
Sun, 13 Feb 2005 21:46:08 +0100 |
User-agent: |
KMail/1.7.2 |
Ähm.. I think you're right. Seems to be my bug. Thx.
> On Sun, 2005-02-13 at 21:12 +0100, Martin Bammer wrote:
> > int main(void)
> > {
> > uint8_t c = 0, d, crc = 0;
> >
> > ...
> >
> > if (c == -crc) {
> > sendline("c == -crc");
> > sendi8hex(c);
> > sendstring("=");
> > sendi8hex(-crc);
> > sendendl();
> > }
>
> I hate to sound like a goof, but can you take the negative of an
> unsigned char like that?
>
> I don't think so.
>
> -Alan