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

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

[avr-gcc-list] use of l as data name [Was: Possible bug in avr-gcc 4.3.2


From: Erwan MARC
Subject: [avr-gcc-list] use of l as data name [Was: Possible bug in avr-gcc 4.3.2?]
Date: Tue, 26 May 2009 08:20:17 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Just a tip: avoid using l as data name: when reading it is possible to make confusion with 1. Prefer other letters or longer names, even for local indexes.

Zoran Rilak a écrit :
uint8_t k = 1;
uint8_t l = now.dow;      // will be 1 at runtime

lcd_write_int16(k==l);    // outputs: 1 (as it should)
lcd_write_int16(dow[l]);  // outputs: 0





reply via email to

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