Skip to content

Commit b7f53c0

Browse files
committed
Fixing issue pointed out by CRAN
1 parent b5ab879 commit b7f53c0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
* Small changes in C++ formatting and conventions to please CRAN.
66

7+
* Fixes a bug when using the stationary value of the root node probability.
8+
79

810
# Changes in aphylo version 0.3-0
911

src/TreeData.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class TreeData {
224224
for (auto iter = types.begin(); iter != types.end(); ++iter) {
225225

226226
if (*iter == 0u) {
227-
this->prop_type_d =+ increments;
227+
this->prop_type_d += increments;
228228
} else if (*iter != 1u)
229229
throw std::invalid_argument("Values in the type of node should be either 0 or 1.");
230230

0 commit comments

Comments
 (0)