diff --git a/CHANGELOG.md b/CHANGELOG.md index fcc2ae7..e459e9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## 0.5.1 (2022-06017) +#### Fixed +- Fix run-time error when compiling as cpp and 32-bit (g++-5 -m32 -fPIC) #85 +- Fix incurrect output number format, remove unnecessary digits (e.g. 2.0e34 -> 2e34). + + ## 0.5.0 (2022-05-25) #### Added - Add LibFuzzer support. diff --git a/CMakeLists.txt b/CMakeLists.txt index 203e295..92f9ceb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ # https://github.com/ibireme/yyjson/blob/master/LICENSE cmake_minimum_required(VERSION 3.5) -project(yyjson VERSION 0.5.0) +project(yyjson VERSION 0.5.1) diff --git a/doc/BuildAndTest.md b/doc/BuildAndTest.md index f0b61b7..8974513 100644 --- a/doc/BuildAndTest.md +++ b/doc/BuildAndTest.md @@ -49,6 +49,8 @@ Supported CMake options: - `-DYYJSON_ENABLE_VALGRIND=ON` Enable valgrind memory checker for tests. - `-DYYJSON_ENABLE_SANITIZE=ON` Enable sanitizer for tests. - `-DYYJSON_ENABLE_FASTMATH=ON` Enable fast-math for tests. +- `-YYJSON_FORCE_32_BIT=ON` Force 32-bit for tests (gcc/clang/icc). + - `-DYYJSON_DISABLE_READER=ON` Disable JSON reader if you don't need it. - `-DYYJSON_DISABLE_WRITER=ON` Disable JSON writer if you don't need it. - `-DYYJSON_DISABLE_FAST_FP_CONV=ON` Disable fast floating-pointer conversion. diff --git a/src/yyjson.h b/src/yyjson.h index 77bc4bb..35a4594 100644 --- a/src/yyjson.h +++ b/src/yyjson.h @@ -409,13 +409,13 @@ extern "C" { #define YYJSON_VERSION_MINOR 5 /** The patch version of yyjson. */ -#define YYJSON_VERSION_PATCH 0 +#define YYJSON_VERSION_PATCH 1 /** The version of yyjson in hex: (major << 16) | (minor << 8) | (patch). */ -#define YYJSON_VERSION_HEX 0x000500 +#define YYJSON_VERSION_HEX 0x000501 /** The version string of yyjson. */ -#define YYJSON_VERSION_STRING "0.5.0" +#define YYJSON_VERSION_STRING "0.5.1" /** The version of yyjson in hex, same as `YYJSON_VERSION_HEX`. */ yyjson_api uint32_t yyjson_version(void);