Skip to content

Commit

Permalink
Do not show warning for logarithmic ratio unit, with quantity, as fun…
Browse files Browse the repository at this point in the history
…ction argument
  • Loading branch information
hanna-kn committed Oct 7, 2024
1 parent 85e1c2f commit e514fd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-10-07 Hanna Knutsson <[email protected]>

* Do not show warning for logarithmic ratio unit, with quantity, as function argument

2024-09-29 Hanna Knutsson <[email protected]>

* Fix inability to abort randpoisson() with very high rate value
Expand Down
2 changes: 1 addition & 1 deletion libqalculate/MathStructure-eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2168,7 +2168,7 @@ bool warn_ratio_units(MathStructure &m, bool top_level = true) {
}
} else {
for(size_t i = 0; i < m.size(); i++) {
if(warn_ratio_units(m[i], false)) return true;
if(warn_ratio_units(m[i], m.isFunction())) return true;
}
}
return false;
Expand Down

0 comments on commit e514fd2

Please sign in to comment.