summaryrefslogtreecommitdiff
path: root/src/upb_atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_atomic.h')
-rw-r--r--src/upb_atomic.h2
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback