소스 검색

potential fix for MSVC compile error

pull/4807/head
Rico P 3 일 전
committed by GitHub
부모
커밋
7dc409d060
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      src/external/sinfl.h

+ 3
- 3
src/external/sinfl.h 파일 보기

@ -172,9 +172,9 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
static int
sinfl_bsr(unsigned n) {
#ifdef _MSC_VER
unsigned long r = 0;
_BitScanReverse(&r, n);
return int(r);
unsigned long uln = 0;
_BitScanReverse(&uln, n);
return int(uln);
#else // defined(__GNUC__) || defined(__clang__) || defined(__TINYC__)
return 31 - __builtin_clz(n);
#endif

불러오는 중...
취소
저장