diff options
author | Alexander Entinger <consulting@lxrobotics.com> | 2019-09-16 12:04:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 12:04:55 +0200 |
commit | ffeca151f1eda674b7baf93b91a827f70c9d836f (patch) | |
tree | e60e2eaa3822ba3298b09c5d6383449ee406ab84 /cores | |
parent | cc8daac45ed0b15896101b691865039c155693bb (diff) | |
parent | c270eaabf4b7e85b0cfbb96c57817af5995b5ad8 (diff) |
Merge pull request #95 from jrowberg/master
Cast pins to signed integers to avoid Wtype-limits compile warning
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/WString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp index f2572d6..043fda7 100644 --- a/cores/arduino/WString.cpp +++ b/cores/arduino/WString.cpp @@ -121,7 +121,7 @@ String::String(double value, unsigned char decimalPlaces) String::~String() { - free(buffer); + if (buffer) free(buffer); } /*********************************************/ |