From 76ccaa50828a158b6a668178eadfcad53291a9b7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 2 Jul 2017 03:15:54 -0700 Subject: [PATCH] Fix comparison between signed and unsigned warning in StringLength example Fixes: warning: comparison between signed and unsigned integer expressions compiler warning. Closes https://github.com/arduino/Arduino/issues/693 (in conjunction with https://github.com/arduino/Arduino/issues/6448) --- build/shared/examples/08.Strings/StringLength/StringLength.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/shared/examples/08.Strings/StringLength/StringLength.ino b/build/shared/examples/08.Strings/StringLength/StringLength.ino index 7d9cbb92cdb..35f315c7f51 100644 --- a/build/shared/examples/08.Strings/StringLength/StringLength.ino +++ b/build/shared/examples/08.Strings/StringLength/StringLength.ino @@ -13,7 +13,7 @@ */ String txtMsg = ""; // a string for incoming text -int lastStringLength = txtMsg.length(); // previous length of the String +unsigned int lastStringLength = txtMsg.length(); // previous length of the String void setup() { // Open serial communications and wait for port to open: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy