Skip to content

Commit

Permalink
BLD: fix building on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
ntessore committed Feb 6, 2024
1 parent 1af0d50 commit 0c58445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion src/healpix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c58445

Please sign in to comment.