avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Bug in avr-gcc


From: Alan Kilian
Subject: Re: [avr-gcc-list] Bug in avr-gcc
Date: Sun, 13 Feb 2005 14:09:31 -0600

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

-- 
- Alan Kilian <kilian(at)bobodyne.com>



reply via email to

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