From bc6f37eeccee8fb8aed9e6027bb9d3846fd58b42 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 10 Jan 2019 23:27:35 +0100 Subject: [PATCH] Fixes build error device/phh/treble/magisk/Magisk/native/jni/systemproperties/prop_area.cpp:386:3: error: no matching function for call to 'atomic_store_explicit' atomic_store_explicit(&node->prop, 0, memory_order_release); ^~~~~~~~~~~~~~~~~~~~~ external/libcxx/include/atomic:1220:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('unsigned int' vs. 'int') atomic_store_explicit(volatile atomic<_Tp>* __o, _Tp __d, memory_order __m) _NOEXCEPT ^ external/libcxx/include/atomic:1229:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('unsigned int' vs. 'int') atomic_store_explicit(atomic<_Tp>* __o, _Tp __d, memory_order __m) _NOEXCEPT --- native/jni/systemproperties/prop_area.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/jni/systemproperties/prop_area.cpp b/native/jni/systemproperties/prop_area.cpp index ec4aeadb1..756c58051 100644 --- a/native/jni/systemproperties/prop_area.cpp +++ b/native/jni/systemproperties/prop_area.cpp @@ -383,7 +383,8 @@ bool prop_area::del(const char *name) { prop_bt* node = find_prop_bt(root_node(), name, false); if (!node) return false; - atomic_store_explicit(&node->prop, 0, memory_order_release); + uint_least32_t new_offset = 0; + atomic_store_explicit(&node->prop, new_offset, memory_order_release); return true; }