Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
unsigned long to size_t
authorsuter <frederic.suter@cc.in2p3.fr>
Thu, 6 Jun 2013 15:52:32 +0000 (17:52 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Thu, 6 Jun 2013 16:40:17 +0000 (18:40 +0200)
src/surf/storage.c

index 8cbfc4f..33ca466 100644 (file)
@@ -102,7 +102,7 @@ static surf_action_t storage_action_open(void *storage, const char* mount, const
 {
   XBT_DEBUG("\tOpen file '%s'",path);
   xbt_dict_t content_dict = ((storage_t)storage)->content;
-  unsigned long size = (unsigned long) xbt_dict_get_or_null(content_dict,path);
+  size_t size = (size_t) xbt_dict_get_or_null(content_dict,path);
   // if file does not exist create an empty file
   if(!size){
     xbt_dict_set(content_dict,path,&size,NULL);