SHA256
1
0
forked from pool/heaptrack

Revert accidental change

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/heaptrack?expand=0&rev=23
This commit is contained in:
Wolfgang Bauer 2020-09-02 08:42:44 +00:00 committed by Git OBS Bridge
parent 299ed32396
commit 00c75ba266

View File

@ -0,0 +1,29 @@
From 76fd2e84ba133e96d2cfdf90cb715e66e923eb8f Mon Sep 17 00:00:00 2001
From: Milian Wolff <mail@milianw.de>
Date: Thu, 17 May 2018 13:31:25 +0200
Subject: Fix compile on 32bit
BUG: 394330
---
src/util/linewriter.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/util/linewriter.h b/src/util/linewriter.h
index 73a7930..e895e87 100644
--- a/src/util/linewriter.h
+++ b/src/util/linewriter.h
@@ -158,6 +158,11 @@ public:
return __builtin_clzl(V);
}
+ inline static unsigned clz(long long unsigned V)
+ {
+ return __builtin_clzll(V);
+ }
+
template <typename V>
static char* writeHexNumber(char* buffer, V value)
{
--
cgit v0.11.2