Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Better fix to the comparison between signed and unsigned int around dynar size: chang...
[simgrid.git] / src / surf / trace_mgr.c
index 3cda9b4..cb88ec0 100644 (file)
@@ -132,7 +132,7 @@ void tmgr_trace_free(tmgr_trace_t trace)
 
 tmgr_trace_event_t tmgr_history_add_trace(tmgr_history_t h,
                                          tmgr_trace_t trace,
-                                         double start_time, int offset,
+                                         double start_time, unsigned int offset,
                                          void *model)
 {
   tmgr_trace_event_t trace_event = NULL;
@@ -188,6 +188,7 @@ tmgr_trace_event_t tmgr_history_get_next_event_leq(tmgr_history_t h,
     trace_event->idx = 0;
   } else {                     /* We don't need this trace_event anymore */
     free(trace_event);
+       return NULL;
   }
 
   return trace_event;