|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
/*
|
|
|
|
|
SPDX-License-Identifier: MIT |
|
|
|
|
|
|
|
|
|
Parson 1.5.1 (https://github.com/kgabis/parson)
|
|
|
|
|
Parson 1.5.2 (https://github.com/kgabis/parson)
|
|
|
|
|
Copyright (c) 2012 - 2023 Krzysztof Gabis |
|
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy |
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
|
|
|
|
|
|
#define PARSON_IMPL_VERSION_MAJOR 1 |
|
|
|
|
#define PARSON_IMPL_VERSION_MINOR 5 |
|
|
|
|
#define PARSON_IMPL_VERSION_PATCH 1 |
|
|
|
|
#define PARSON_IMPL_VERSION_PATCH 2 |
|
|
|
|
|
|
|
|
|
#if (PARSON_VERSION_MAJOR != PARSON_IMPL_VERSION_MAJOR)\ |
|
|
|
|
|| (PARSON_VERSION_MINOR != PARSON_IMPL_VERSION_MINOR)\
|
|
|
|
@ -441,7 +441,7 @@ static JSON_Status json_object_init(JSON_Object *object, size_t capacity) { |
|
|
|
|
|
|
|
|
|
object->count = 0; |
|
|
|
|
object->cell_capacity = capacity; |
|
|
|
|
object->item_capacity = (unsigned int)(capacity * 0.7f); |
|
|
|
|
object->item_capacity = (unsigned int)(capacity * 7/10); |
|
|
|
|
|
|
|
|
|
if (capacity == 0) { |
|
|
|
|
return JSONSuccess; |
|
|
|
|