Skip to content

Commit c67ada2

Browse files
Fix base case condition in fibonacci function
closes #42
1 parent 441997e commit c67ada2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/source/fib/ccpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace {
1010
using namespace concurrencpp;
1111

1212
auto fibonacci(executor_tag, thread_pool_executor *tpe, const int n) -> result<int> {
13-
if (n <= 2) {
13+
if (n < 2) {
1414
co_return n;
1515
}
1616

0 commit comments

Comments
 (0)