mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
libbacktrace: Use correct type in backtrace_atomic_store_int
libbacktrace/ChangeLog: * atomic.c (backtrace_atomic_store_int): Use int for old value.
This commit is contained in:
committed by
Jonathan Wakely
parent
c7dc9b6f88
commit
895ea5bdc5
@@ -103,7 +103,7 @@ backtrace_atomic_store_size_t (size_t *p, size_t v)
|
||||
void
|
||||
backtrace_atomic_store_int (int *p, int v)
|
||||
{
|
||||
size_t old;
|
||||
int old;
|
||||
|
||||
old = *p;
|
||||
while (!__sync_bool_compare_and_swap (p, old, v))
|
||||
|
||||
Reference in New Issue
Block a user