Skip to content

Commit

Permalink
🎨 small change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewniok committed Mar 21, 2024
1 parent ea035c9 commit f0d8f0c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#include <pybind11/pybind11.h>

#include <utility>

namespace pyfiction
{

Expand All @@ -27,10 +29,9 @@ void critical_path_length_and_throughput(pybind11::module& m)
"critical_path_length_and_throughput",
[](const Lyt& lyt) -> std::pair<uint64_t, uint64_t>
{
fiction::critical_path_length_and_throughput_stats stats{};
fiction::critical_path_length_and_throughput(lyt, &stats);
const auto result = fiction::critical_path_length_and_throughput(lyt);

return {stats.critical_path_length, stats.throughput};
return {result.critical_path_length, result.throughput};
},
"layout"_a, DOC(fiction_critical_path_length_and_throughput));
}
Expand Down

0 comments on commit f0d8f0c

Please sign in to comment.