From 2100ff8541a4b70728fe504b014fc8750029c764 Mon Sep 17 00:00:00 2001 From: Paolo Paolucci Date: Wed, 23 Sep 2015 10:03:48 +0200 Subject: [PATCH] Fix warning on file stream.cpp > Stream.cpp:167:10: warning: comparison is always false due to limited range of data type [-Wtype-limits] if(c < 0) --- cores/arduino/Stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/Stream.cpp b/cores/arduino/Stream.cpp index b31942f29..3e5235744 100644 --- a/cores/arduino/Stream.cpp +++ b/cores/arduino/Stream.cpp @@ -159,7 +159,7 @@ float Stream::parseFloat(char skipChar){ bool isNegative = false; bool isFraction = false; long value = 0; - char c; + int c; float fraction = 1.0; c = peekNextDigit();