Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Return what was apparently intended.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 20 Jul 2017 12:59:17 +0000 (14:59 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 20 Jul 2017 14:36:14 +0000 (16:36 +0200)
include/simgrid/kernel/future.hpp

index 777a9f4..766d425 100644 (file)
@@ -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: