Skip to content

Commit

Permalink
Fix comparison between signed and unsigned warning in StringLength ex…
Browse files Browse the repository at this point in the history
…ample

Fixes:
warning: comparison between signed and unsigned integer expressions
compiler warning.

Closes arduino#693 (in conjunction with arduino#6448)
  • Loading branch information
per1234 authored and cmaglie committed Jul 6, 2017
1 parent 352df2c commit c5d4e5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c5d4e5f

Please sign in to comment.