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:
parent
299ed32396
commit
00c75ba266
29
Fix-compile-on-32bit.patch
Normal file
29
Fix-compile-on-32bit.patch
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user