Reduced stack usage when compiled with -Og (issue #1210)

This saves 96 bytes on ESP8266
This commit is contained in:
Benoit Blanchon
2020-07-26 12:23:55 +02:00
parent 2223d40640
commit 824b7a25ca
5 changed files with 51 additions and 32 deletions

View File

@@ -466,7 +466,8 @@ class JsonDeserializer {
: DeserializationError::IncompleteInput;
}
ParsedNumber<Float, UInt> num = parseNumber<Float, UInt>(_buffer);
ParsedNumber<Float, UInt> num;
parseNumber<Float, UInt>(_buffer, num);
switch (num.type()) {
case VALUE_IS_NEGATIVE_INTEGER: