[DEBUG] correct buid of tutorial

This commit is contained in:
Edouard DUPIN 2017-11-07 10:16:10 +01:00
parent 627cc3ab7b
commit ec7f6cc1f1
2 changed files with 4 additions and 4 deletions

View File

@ -199,12 +199,12 @@ static void readFull() {
{
// Get the value:
//! [ejson_sample_read_get_number]
double value = doc["object D"].toNumber().get();
double valueDouble = doc["object D"].toNumber().get();
//! [ejson_sample_read_get_number]
//! [ejson_sample_read_get_number_64_bits]
uint64_t value = doc["object D"].toNumber().getU64();
uint64_t valueUint = doc["object D"].toNumber().getU64();
//! [ejson_sample_read_get_number_64_bits]
TEST_INFO(" Number Value:" << value);
TEST_INFO(" Number Value double:" << valueDouble << " int64=" << valueUint);
}
TEST_INFO("Read Array:");

View File

@ -19,7 +19,7 @@ static void writeToFile() {
bool retGenerate = doc.store("generate.json");
//! [ejson_sample_write_file]
//! [ejson_sample_write_file_safe_mode]
bool retGenerate = doc.storeSafe("generate.json");
retGenerate = doc.storeSafe("generate.json");
//! [ejson_sample_write_file_safe_mode]
TEST_INFO("parse ret = " << retGenerate);
TEST_INFO("Debug display of the tree:");