diff --git a/client/src/util.c b/client/src/util.c index ea33de446..723f3e758 100644 --- a/client/src/util.c +++ b/client/src/util.c @@ -45,7 +45,7 @@ bool g_pendingPrompt = false; #include #endif -#define MAX_BIN_BREAK_LENGTH (3072+384+1) +#define MAX_BIN_BREAK_LENGTH (3072 + 384 + 1) #ifndef _WIN32 #include @@ -1229,7 +1229,7 @@ inline uint64_t bitcount64(uint64_t a) { inline uint32_t leadingzeros32(uint32_t a) { #if defined __GNUC__ - return __builtin_clzl(a); + return __builtin_clz(a); #else PrintAndLogEx(FAILED, "Was not compiled with fct bitcount64"); return 0;