diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index 21d93a13..4456dbd9 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -6,7 +6,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/arch.yml' - 'cmake/**' - 'include/**' - 'src/**' @@ -17,7 +17,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/arch.yml' - 'cmake/**' - 'include/**' - 'src/**' diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0ae0648e..d0b62c96 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -3,7 +3,7 @@ name: Coverage on: push: paths: - - '.github/**' + - '.github/workflows/coverage.yml' - 'cmake/**' - 'include/**' - 'scripts/**' @@ -12,7 +12,7 @@ on: - '**/CMakeLists.txt' pull_request: paths: - - '.github/**' + - '.github/workflows/coverage.yml' - 'cmake/**' - 'include/**' - 'scripts/**' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 75096ccb..f181eb75 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,7 +11,7 @@ on: - "**.md" - "docs/**" - "**/docs.yml" - - '.github/**' + - '.github/workflows/docs.yml' release: types: [published] workflow_dispatch: diff --git a/.github/workflows/fuzz-continuous.yml b/.github/workflows/fuzz-continuous.yml index 51259a7a..a2a405a5 100644 --- a/.github/workflows/fuzz-continuous.yml +++ b/.github/workflows/fuzz-continuous.yml @@ -5,7 +5,7 @@ on: branches: - master paths: - - '.github/**' + - '.github/workflows/fuzz-continuous.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' diff --git a/.github/workflows/fuzz-cron.yml b/.github/workflows/fuzz-cron.yml index 70a1835c..b8558ee8 100644 --- a/.github/workflows/fuzz-cron.yml +++ b/.github/workflows/fuzz-cron.yml @@ -25,7 +25,7 @@ jobs: uses: google/clusterfuzzlite/actions/run_fuzzers@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} - fuzz-seconds: 1200 + fuzz-seconds: 86400 mode: 'prune' output-sarif: true storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/eliaskosunen/scnlib-fuzz-corpus.git diff --git a/.github/workflows/fuzz-pr.yml b/.github/workflows/fuzz-pr.yml index a8a94a32..3dbd5a86 100644 --- a/.github/workflows/fuzz-pr.yml +++ b/.github/workflows/fuzz-pr.yml @@ -3,10 +3,8 @@ name: ClusterFuzzLite PR fuzzing on: pull_request: paths: - - '.github/**' - - 'benchmark/**' + - '.github/workflows/fuzz-pr.yml' - 'cmake/**' - - 'examples/**' - 'include/**' - 'src/**' - 'tests/**' diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 16453be1..35e9654b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -6,7 +6,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/linux.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' @@ -19,7 +19,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/linux.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' diff --git a/.github/workflows/lite.yml b/.github/workflows/lite.yml index 3ddcc0b0..7de0cfd6 100644 --- a/.github/workflows/lite.yml +++ b/.github/workflows/lite.yml @@ -6,7 +6,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/lite.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' @@ -19,7 +19,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/lite.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index cfccf876..d6530258 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -6,7 +6,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/macos.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' @@ -19,7 +19,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/macos.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 275533b6..401a004e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -6,7 +6,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/windows.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' @@ -19,7 +19,7 @@ on: - master - v*/dev paths: - - '.github/**' + - '.github/workflows/windows.yml' - 'benchmark/**' - 'cmake/**' - 'examples/**' diff --git a/cmake/charconv_compile_test.cpp b/cmake/charconv_compile_test.cpp index e3d892cd..d7b849b1 100644 --- a/cmake/charconv_compile_test.cpp +++ b/cmake/charconv_compile_test.cpp @@ -16,6 +16,7 @@ // https://github.com/eliaskosunen/scnlib #include +#include #include int main() { @@ -23,11 +24,11 @@ int main() { double value{}; auto [ptr, ec] = std::from_chars(input.data(), input.data() + input.size(), value); if (ec != std::errc{}) { - std::fprintf(stderr, "std::from_chars() failed with error code %d\n", ec); + std::fprintf(stderr, "std::from_chars failed with error code %d\n", static_cast(ec)); return 1; } if (ptr != input.data() + input.size()) { - std::fprintf(stderr, "std::from_chars() failed with invalid pointer: %p, expected %p\n", ptr, input.data() + input.size()); + std::fprintf(stderr, "std::from_chars failed with invalid pointer: %p, expected %p\n", ptr, input.data() + input.size()); return 1; } return 0; diff --git a/include/scn/scan.h b/include/scn/scan.h index a73f8bb9..7a6d54d2 100644 --- a/include/scn/scan.h +++ b/include/scn/scan.h @@ -6713,6 +6713,7 @@ struct specs_setter { { m_specs.fill = fill; } + template constexpr void on_localized() { if constexpr (!SCN_DISABLE_LOCALE) {