From 23926a7a146ce4867f02fa027c12bbda161a1a31 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 19 Mar 2023 12:48:47 +0100 Subject: [PATCH] fix leading zero call --- client/src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;