Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }}

env:
SIMDJSON_VERSION: v5.0.7
SIMDJSON_VERSION: v5.3.0

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ option(SIMDJSON_MSGPACK_COMPETITION "Benchmark other libraries too" OFF)

include(FetchContent)
FetchContent_Declare(simdjson
URL https://github.com/simdjson/simdjson/archive/refs/tags/v5.0.7.tar.gz
URL https://github.com/simdjson/simdjson/archive/refs/tags/v5.3.0.tar.gz
DOWNLOAD_EXTRACT_TIMESTAMP TRUE)
set(SIMDJSON_DEVELOPER_MODE OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(simdjson)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The simplest way: take two files from a
[release](https://github.com/simdjson/simdjson_msgpack/releases),
`simdjson_msgpack.h` and `simdjson_msgpack.cpp` (or `singleheader.zip`, which
holds both), and the two files of a
[simdjson release](https://github.com/simdjson/simdjson/releases) (5.0.7 or
[simdjson release](https://github.com/simdjson/simdjson/releases) (5.3.0 or
later), `simdjson.h` and `simdjson.cpp`. Put the four files in one directory,
include `simdjson_msgpack.h`, and compile the two source files with yours, as
C++17:
Expand Down Expand Up @@ -285,7 +285,7 @@ cmake --build build
ctest --test-dir build # the tests and the example
```

CMake downloads simdjson 5.0.7. Options: `SIMDJSON_MSGPACK_TESTS`,
CMake downloads simdjson 5.3.0. Options: `SIMDJSON_MSGPACK_TESTS`,
`SIMDJSON_MSGPACK_BENCHMARKS` and `SIMDJSON_MSGPACK_EXAMPLES` (on by default),
and `SIMDJSON_MSGPACK_COMPETITION` (off), which downloads nlohmann/json,
yyjson, RapidJSON and mpack and builds `bench_competition`.
Expand Down
4 changes: 2 additions & 2 deletions src/to_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,14 @@ class decoder {
simdjson_inline bool has(size_t n) const { return size_t(end_ - in_) >= n; }

simdjson_inline void put_uint(uint64_t x) {
out_ = simdjson::internal::write_uint_jeaiii(out_, x);
out_ = simdjson::internal::write_uint(out_, x);
}
simdjson_inline void put_int(int64_t x) {
const bool negative = x < 0;
*out_ = '-';
out_ += negative;
const uint64_t magnitude = negative ? 0 - static_cast<uint64_t>(x) : static_cast<uint64_t>(x);
out_ = simdjson::internal::write_uint_jeaiii(out_, magnitude);
out_ = simdjson::internal::write_uint(out_, magnitude);
}
// The shortest representation that gives back x, with a decimal point or
// an exponent (1.0, not 1), so that it reads back as a floating-point
Expand Down
Loading