From 7357e38cf62af23295b74211b0083ab84309437e Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Tue, 19 May 2009 18:16:08 +0000 Subject: [PATCH] Fixing overflow bug in bit() macro: (1 << (b)) becomes (1UL << (b)) --- hardware/cores/arduino/wiring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/cores/arduino/wiring.h b/hardware/cores/arduino/wiring.h index 2f84f78ec..21d62c71c 100755 --- a/hardware/cores/arduino/wiring.h +++ b/hardware/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;