Fixing overflow bug in bit() macro: (1 << (b)) becomes (1UL << (b))

This commit is contained in:
David A. Mellis 2009-05-19 18:16:08 +00:00
parent b11e25ecf2
commit 7357e38cf6
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ extern "C"{
typedef unsigned int word;
#define bit(b) (1 << (b))
#define bit(b) (1UL << (b))
typedef uint8_t boolean;
typedef uint8_t byte;