summaryrefslogtreecommitdiff
path: root/src/upb_atomic.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-01-01 17:31:14 -0800
committerJoshua Haberman <joshua@reverberate.org>2010-01-01 17:31:14 -0800
commitece08710a64e09baf4bdcb71752ce20ff1d4a757 (patch)
tree4aec32670cccdf6dfeacf385eedca10f8f1292ed /src/upb_atomic.h
parent2fdc9df97eab06f2b42c1a9a87bc01d5e9feedd7 (diff)
Bugfixes: descriptorgen works without leaks!
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