Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't cast the long int to avoid the warning but adapt the declaration of the variable
[simgrid.git] / src / gras / DataDesc / ddt_exchange.c
index d020c77..9ecb300 100644 (file)
@@ -305,7 +305,7 @@ gras_datadesc_memcpy_rec(gras_cbps_t           state,
 
   case e_gras_datadesc_type_cat_array: {
     gras_dd_cat_array_t    array_data;
-    long int               array_count;
+    unsigned long int     array_count;
     char                  *src_ptr=src;
     char                  *dst_ptr=dst;
     long int               elm_size;
@@ -342,7 +342,7 @@ gras_datadesc_memcpy_rec(gras_cbps_t           state,
        
     } else {
       VERB1("Array of %ld stuff, copy it in one after the other",array_count);
-      for (cpt=0; cpt<(unsigned int)array_count; cpt++) {
+      for (cpt=0; cpt<array_count; cpt++) {
        VERB2("Copy the %dth stuff out of %ld",cpt,array_count);
        count += gras_datadesc_memcpy_rec(state,refs, sub_type, src_ptr, dst_ptr, 0,
                                        detect_cycle || sub_type->cycle);