From: Arnaud Giersch Date: Thu, 20 Jul 2017 12:59:17 +0000 (+0200) Subject: Return what was apparently intended. X-Git-Tag: v3_17~339 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/66f77bf0a45cdfe262885d0977c5f5ec75516fc9 Return what was apparently intended. --- diff --git a/include/simgrid/kernel/future.hpp b/include/simgrid/kernel/future.hpp index 777a9f48b2..766d425338 100644 --- a/include/simgrid/kernel/future.hpp +++ b/include/simgrid/kernel/future.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016. The SimGrid Team. +/* Copyright (c) 2016-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -181,7 +181,7 @@ public: xbt_assert(this->value_); T* result = value_; value_ = nullptr; - return *value_; + return *result; } private: