-/* Copyright (c) 2017-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
long number_of_yields;
public:
- explicit yielder(std::vector<std::string> args) { number_of_yields = std::stod(args[1]); }
+ explicit yielder(std::vector<std::string> args) { number_of_yields = std::stol(args[1]); }
void operator()() const
{
for (int i = 0; i < number_of_yields; i++)