Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This one was easy. :)
[simgrid.git] / src / xbt / swag.c
index 5b2f758..3c2793a 100644 (file)
@@ -1,7 +1,9 @@
-/* Authors: Arnaud Legrand                                                  */
+/*     $Id$     */
+
+/* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
 
 /* This program is free software; you can redistribute it and/or modify it
  under the terms of the license (GNU LGPL) which comes with this package. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* Warning, this module is done to be efficient and performs tons of
    cast and dirty things. So avoid using it unless you really know
@@ -110,6 +112,7 @@ void *xbt_swag_extract(xbt_swag_t swag)
     PREV(swag->head, offset) = NULL;
     NEXT(obj, offset) = NULL;
   }
+  (swag->count)--;
 
   return obj;
 }