From: Frederic Suter Date: Thu, 23 Mar 2017 11:55:02 +0000 (+0100) Subject: 32-bit requires smthg longer than size_t X-Git-Tag: v3.16~466 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3d9bdd3f1867244ebd0321dfb03bc1e0633cd560?hp=6063afbddf453571e145b5236294c8631d9eecb2 32-bit requires smthg longer than size_t --- 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; };