From 0b123d5ee4441383bffa89f80fa8b92aa770ac44 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Tue, 19 May 2009 18:16:08 +0000 Subject: Fixing overflow bug in bit() macro: (1 << (b)) becomes (1UL << (b)) --- cores/arduino/wiring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/wiring.h b/cores/arduino/wiring.h index 2f84f78..21d62c7 100755 --- a/cores/arduino/wiring.h +++ b/cores/arduino/wiring.h @@ -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; -- cgit v1.2.3-18-g5258