]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
atomic_t oops
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 29 Oct 2007 21:02:04 +0000 (21:02 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 29 Oct 2007 21:02:04 +0000 (21:02 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@2004 29311d96-e01e-0410-9327-a35deaab8ce9

branches/sage/ebofs2/include/atomic.h

index 17d9584db3a39f4cdc6412ec64e254cb381a4d73..b8c2a2f09d9e1c69ffc42bded185f0231407dcd1 100644 (file)
@@ -23,7 +23,7 @@ class atomic_t {
 public:
   atomic_t(int i=0) : nref(i) {}
   void get() { ++nref; }
-  int put() { --nref; }
+  int put() { return --nref; }
   int test() const { return nref; }
 };