genSym: atomic_inc() now takes two arguments
authorPatrick Palka <patrick@parcs.ath.cx>
Wed, 4 Sep 2013 17:33:14 +0000 (13:33 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Wed, 4 Sep 2013 18:40:29 +0000 (14:40 -0400)
compiler/cbits/genSym.c

index 8614e97..4217e63 100644 (file)
@@ -7,7 +7,7 @@ HsInt genSym(void) {
     if (n_capabilities == 1) {
         return GenSymCounter++;
     } else {
-        return atomic_inc((StgWord *)&GenSymCounter);
+        return atomic_inc((StgWord *)&GenSymCounter, 1);
     }
 }