Skip to content

Commit

Permalink
fix crash when calling writeNumber(v = 0)
Browse files Browse the repository at this point in the history
  • Loading branch information
jg1uaa committed Dec 29, 2024
1 parent 22a0c42 commit 7378e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libtermbench/termbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ namespace termbench
{

#if defined(_MSC_VER)
#define leadingZeroBits(x) __lzcnt(v)
#define leadingZeroBits(x) __lzcnt(x)
#else
#define leadingZeroBits(x) __builtin_clz(v)
#define leadingZeroBits(x) __builtin_clz(x)
#endif

using u16 = unsigned short;
Expand Down

0 comments on commit 7378e03

Please sign in to comment.