File tree 4 files changed +21
-2
lines changed
include/nlohmann/detail/output
4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,24 @@ jobs:
233
233
. /opt/intel/oneapi/setvars.sh
234
234
cmake --build build --target ci_icpc
235
235
236
+ ci_emscripten :
237
+ runs-on : ubuntu-latest
238
+ steps :
239
+ - name : Harden Runner
240
+ uses : step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
241
+ with :
242
+ egress-policy : audit
243
+
244
+ - name : Install emscripten
245
+ uses : mymindstorm/setup-emsdk@v14
246
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
247
+ - name : Get latest CMake and ninja
248
+ uses : lukka/get-cmake@57c20a23a6cac5b90f31864439996e5b206df9dc # v4.0.1
249
+ - name : Run CMake
250
+ run : cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -GNinja
251
+ - name : Build
252
+ run : cmake --build build
253
+
236
254
ci_test_documentation :
237
255
runs-on : ubuntu-latest
238
256
strategy :
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ violations will result in a failed build.
57
57
| Clang 19.1.7 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
58
58
| Clang 20.1.1 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
59
59
| Clang 21.0.0 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
60
+ | Emscripten 4.0.6 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
60
61
| GNU 4.8.5 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
61
62
| GNU 4.9.3 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
62
63
| GNU 5.5.0 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
Original file line number Diff line number Diff line change @@ -762,7 +762,7 @@ class serializer
762
762
763
763
// jump to the end to generate the string from backward,
764
764
// so we later avoid reversing the result
765
- buffer_ptr += n_chars;
765
+ buffer_ptr += static_cast < typename decltype (number_buffer)::difference_type>( n_chars) ;
766
766
767
767
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
768
768
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
Original file line number Diff line number Diff line change @@ -19483,7 +19483,7 @@ class serializer
19483
19483
19484
19484
// jump to the end to generate the string from backward,
19485
19485
// so we later avoid reversing the result
19486
- buffer_ptr += n_chars;
19486
+ buffer_ptr += static_cast<typename decltype(number_buffer)::difference_type>( n_chars) ;
19487
19487
19488
19488
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
19489
19489
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
You can’t perform that action at this time.
0 commit comments