Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*

@@ -2300,11 +2300,11 @@
 
         e->cte_contract = ct;
         e->cte_data = data;
         e->cte_gdata = gdata;
         e->cte_refs = 3;
-        evid = e->cte_id = atomic_add_64_nv(&ct->ct_type->ct_type_evid, 1);
+        evid = e->cte_id = atomic_inc_64_nv(&ct->ct_type->ct_type_evid);
         contract_hold(ct);
 
         /*
          * For a negotiation event we set the ct->ct_nevent field of the
          * contract for the duration of the negotiation