aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.cpp
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2011-10-10 11:28:44 -0400
committerDavid A. Mellis <d.mellis@arduino.cc>2011-10-10 11:28:44 -0400
commit77cdeb5b930c473488933e04573159bda93b9491 (patch)
tree6b5a1348f5a2a26b8affc302ab66b5ac5ac9853f /cores/arduino/Print.cpp
parent075bb009b9bf48169921e1a43329ea49c15480bc (diff)
Fixing more warnings (Paul Stoffregen).
Diffstat (limited to 'cores/arduino/Print.cpp')
-rwxr-xr-xcores/arduino/Print.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp
index 500de8c..ff9b154 100755
--- a/cores/arduino/Print.cpp
+++ b/cores/arduino/Print.cpp
@@ -54,7 +54,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
size_t Print::print(const String &s)
{
size_t n = 0;
- for (int i = 0; i < s.length(); i++) {
+ for (uint16_t i = 0; i < s.length(); i++) {
n += write(s[i]);
}
return n;