From 0c584454eb1e0b92afd4ee5b4849d4ffcc449828 Mon Sep 17 00:00:00 2001 From: Nicolas Tessore Date: Tue, 6 Feb 2024 09:36:33 +0000 Subject: [PATCH] BLD: fix building on win32 --- .github/workflows/cibuildwheel.yml | 1 + src/healpix.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index d478fb6..fecc3d3 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -17,6 +17,7 @@ jobs: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-20.04, windows-2019, macos-11] diff --git a/src/healpix.c b/src/healpix.c index ac42bba..ea8c685 100644 --- a/src/healpix.c +++ b/src/healpix.c @@ -29,7 +29,7 @@ static double invz(double z, double s) { static inline int clz(uint64_t x) { #if defined(__GNUC__) || defined(__clang__) return __builtin_clzll(x); -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && (defined(_M_AMD64) || defined(_M_X64)) unsigned long bsr; return _BitScanReverse64(&bsr, x) ? 63 - bsr : 64; #else