mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-07 01:54:26 +01:00
Fixing overflow bug in bit() macro: (1 << (b)) becomes (1UL << (b))
This commit is contained in:
parent
b11e25ecf2
commit
7357e38cf6
@ -92,7 +92,7 @@ extern "C"{
|
|||||||
|
|
||||||
typedef unsigned int word;
|
typedef unsigned int word;
|
||||||
|
|
||||||
#define bit(b) (1 << (b))
|
#define bit(b) (1UL << (b))
|
||||||
|
|
||||||
typedef uint8_t boolean;
|
typedef uint8_t boolean;
|
||||||
typedef uint8_t byte;
|
typedef uint8_t byte;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user