A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unsigned long to size_t
[simgrid.git]
/
src
/
surf
/
storage.c
diff --git
a/src/surf/storage.c
b/src/surf/storage.c
index
8cbfc4f
..
33ca466
100644
(file)
--- a/
src/surf/storage.c
+++ b/
src/surf/storage.c
@@
-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);