From 3d9bdd3f1867244ebd0321dfb03bc1e0633cd560 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Thu, 23 Mar 2017 12:55:02 +0100 Subject: [PATCH] 32-bit requires smthg longer than size_t --- include/simgrid/msg.h | 2 +- include/simgrid/s4u/storage.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index c65ac44bb7..f0e9ee3983 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -100,7 +100,7 @@ typedef xbt_dictelm_t msg_storage_t; struct msg_storage_priv { const char *hostname; - size_t size; + sg_size_t size; void *data; }; typedef struct msg_storage_priv s_msg_storage_priv_t; diff --git a/include/simgrid/s4u/storage.hpp b/include/simgrid/s4u/storage.hpp index 4297f7c701..1fa34799e0 100644 --- a/include/simgrid/s4u/storage.hpp +++ b/include/simgrid/s4u/storage.hpp @@ -54,7 +54,7 @@ private: static boost::unordered_map *storages_; std::string name_; - size_t size_; + sg_size_t size_; smx_storage_t pimpl_ = nullptr; void *userdata_ = nullptr; }; -- 2.20.1