mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Added custom implementation of strtol() (issue #465)
`char` is now treated as an integral type (issue #337, #370)
This commit is contained in:
@@ -20,6 +20,8 @@ inline T parseFloat(const char* s) {
|
||||
typedef typename traits::mantissa_type mantissa_t;
|
||||
typedef typename traits::exponent_type exponent_t;
|
||||
|
||||
if (!s) return 0;
|
||||
|
||||
bool negative_result = false;
|
||||
switch (*s) {
|
||||
case '-':
|
||||
|
||||
Reference in New Issue
Block a user