Skip to content

Commit

Permalink
Update sdefl.h
Browse files Browse the repository at this point in the history
Fix MSVC build (typo in unsigned)
  • Loading branch information
zeux authored Dec 23, 2020
1 parent cf87887 commit 9b5aabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdefl.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ sdefl_ilog2(int n) {
if (!n) return 0;
#ifdef _MSC_VER
unsigned long msbp = 0;
_BitScanReverse(&msbp, (unsignd long)n);
_BitScanReverse(&msbp, (unsigned long)n);
return (int)msbp;
#elif defined(__GNUC__) || defined(__clang__)
return (int)sizeof(unsigned long) * CHAR_BIT - 1 - __builtin_clzl((unsigned long)n);
Expand Down

0 comments on commit 9b5aabc

Please sign in to comment.