diff options
Diffstat (limited to 'src/upb_atomic.h')
-rw-r--r-- | src/upb_atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_atomic.h b/src/upb_atomic.h index de2238c..c2cb8ba 100644 --- a/src/upb_atomic.h +++ b/src/upb_atomic.h @@ -59,7 +59,7 @@ INLINE bool upb_atomic_add(upb_atomic_refcount_t *a, int val) { return a->v == 0; } -INLINE bool upb_atomic_fetch_and_add(upb_atomic_refcount_t *a, int val) { +INLINE int upb_atomic_fetch_and_add(upb_atomic_refcount_t *a, int val) { int ret = a->v; a->v += val; return ret; |