Commit bc6f37ee authored by Pierre-Hugues Husson's avatar Pierre-Hugues Husson Committed by John Wu

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
parent ffebff8c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment