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
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Nov 2007 12:10:41 +0000 (12:10 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Nov 2007 12:10:41 +0000 (12:10 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5056 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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);