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 @@ -12,7 +12,7 @@ on:
workflow_dispatch:

env:
SIMDJSON_VERSION: v5.1.1
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_ARROW_ARROW_CPP "Build the example and the benchmark that use Ar

include(FetchContent)
FetchContent_Declare(simdjson
URL https://github.com/simdjson/simdjson/archive/refs/tags/v5.1.1.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 @@ -42,7 +42,7 @@ The simplest way: take two files from a
[release](https://github.com/simdjson/simdjson_arrow/releases), `simdjson_arrow.h`
and `simdjson_arrow.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 later), `simdjson.h` and `simdjson.cpp`. Put the four files in one
(5.3.0 or later), `simdjson.h` and `simdjson.cpp`. Put the four files in one
directory, include `simdjson_arrow.h`, and compile the two source files with
yours, as C++17:

Expand Down Expand Up @@ -368,7 +368,7 @@ cmake --build build
ctest --test-dir build # the C++ tests and the example
```

CMake downloads simdjson 5.1.1. Options: `SIMDJSON_ARROW_TESTS`,
CMake downloads simdjson 5.3.0. Options: `SIMDJSON_ARROW_TESTS`,
`SIMDJSON_ARROW_BENCHMARKS` and `SIMDJSON_ARROW_EXAMPLES` (on by default), and
`SIMDJSON_ARROW_ARROW_CPP` (off), which builds `examples/arrow_cpp.cpp` and
`benchmarks/bench_arrow_cpp.cpp` against an installed Arrow C++ (with
Expand Down
4 changes: 2 additions & 2 deletions src/ndjson_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ class output {
void append_bool(bool b) { append_raw(b ? std::string_view("true") : std::string_view("false")); }
void append_uint(uint64_t x) {
char* p = reserve(20);
size_ = simdjson::internal::write_uint_jeaiii(p, x) - data_;
size_ = simdjson::internal::write_uint(p, x) - data_;
}
void append_int(int64_t x) {
char* p = reserve(20);
const bool negative = x < 0;
*p = '-';
p += negative;
const uint64_t magnitude = negative ? 0 - static_cast<uint64_t>(x) : static_cast<uint64_t>(x);
size_ = simdjson::internal::write_uint_jeaiii(p, magnitude) - data_;
size_ = simdjson::internal::write_uint(p, magnitude) - data_;
}
// x must be finite. We write the shortest representation that gives back x,
// with a decimal point or an exponent (1.0, not 1), so that the number reads
Expand Down
Loading