From 46a4e6f64c0f317445d2bb184125ce594cc90caf Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Mon, 19 Jun 2017 15:00:00 +0200 Subject: [PATCH] dict/32-bit combo from hell! --- examples/msg/io-storage/io-storage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/msg/io-storage/io-storage.c b/examples/msg/io-storage/io-storage.c index 974de4d6d9..c4731aeafe 100644 --- a/examples/msg/io-storage/io-storage.c +++ b/examples/msg/io-storage/io-storage.c @@ -100,11 +100,11 @@ static int host(int argc, char *argv[]){ char* mountname; xbt_dict_t content; char* path; - sg_size_t size; + sg_size_t* psize; xbt_dict_foreach(contents, curs, mountname, content){ XBT_INFO("Print the content of mount point: %s",mountname); - xbt_dict_foreach(content,curs2,path,size){ - XBT_INFO("%s size: %llu bytes", path, *((sg_size_t*)size)); + xbt_dict_foreach (content, curs2, path, psize) { + XBT_INFO("%s size: %llu bytes", path, *psize); } xbt_dict_free(&content); } -- 2.20.1