Skip to content

Commit

Permalink
Fix clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
cguimaraes authored Nov 21, 2023
1 parent 177172c commit a4cc939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/zenoh-pico/collections/pointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
name##_sptr_t c; \
c._cnt = p->_cnt; \
c.ptr = p->ptr; \
_z_atomic_fetch_add_explicit(p->_cnt, 1, _z_memory_order_relaxed); \
_z_atomic_fetch_add_explicit(p->_cnt, 1, _z_memory_order_relaxed); \
return c; \
} \
static inline name##_sptr_t *name##_sptr_clone_as_ptr(name##_sptr_t *p) { \
Expand All @@ -85,7 +85,7 @@
unsigned int c = _z_atomic_fetch_sub_explicit(p->_cnt, 1, _z_memory_order_release); \
dropped = c == 1; \
if (dropped == true) { \
atomic_thread_fence(_z_memory_order_acquire); \
atomic_thread_fence(_z_memory_order_acquire); \
if (p->ptr != NULL) { \
type##_clear(p->ptr); \
z_free(p->ptr); \
Expand Down

0 comments on commit a4cc939

Please sign in to comment.