diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 1ab014f..de6028a 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -12,6 +12,7 @@ jobs: config: - { name: "Windows MSVC", + enabled: 1, os: windows-latest, deps: "", config: "cmake .", @@ -20,6 +21,7 @@ jobs: } - { name: "Ubuntu gcc", + enabled: 0, os: ubuntu-latest, deps: "sudo apt-get install liblo-dev", config: "mkdir build && cd build && cmake ..", @@ -28,6 +30,7 @@ jobs: } - { name: "macOS clang", + enabled: 0, os: macos-latest, deps: "", config: "mkdir build && cd build && cmake ..", @@ -35,6 +38,7 @@ jobs: test: "cd build && ctest --output-on-failure" } + if: ${{matrix.config.enabled}} steps: - uses: actions/checkout@v1 - name: install_deps diff --git a/src/rtosc-time.c b/src/rtosc-time.c index 9708abe..2df7928 100644 --- a/src/rtosc-time.c +++ b/src/rtosc-time.c @@ -33,9 +33,9 @@ rtosc_arg_val_t *rtosc_arg_val_from_params(rtosc_arg_val_t *dest, uint64_t rtosc_float2secfracs(float secfracsf) { - char secfracs_as_hex[32]; + char secfracs_as_hex[16]; // print float in hex representation (lossless) - int written = snprintf(secfracs_as_hex, 32, "%a", secfracsf); + int written = snprintf(secfracs_as_hex, 16, "%a", secfracsf); // examples: // 0.85 => 0x1.b33334p-1 // 0.51 => 0x1.051eb8p-1