From ece08710a64e09baf4bdcb71752ce20ff1d4a757 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 1 Jan 2010 17:31:14 -0800 Subject: Bugfixes: descriptorgen works without leaks! --- src/upb_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_atomic.h') 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; -- cgit v1.2.3