Skip to content

Commit

Permalink
avoid clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ms609 committed Feb 9, 2024
1 parent ef11a03 commit a144e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AllQuartets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ IntegerMatrix all_quartets(IntegerVector nTips) {
if (!nTips.length()) {
Rcpp::stop("nTips must contain a single integer value");
}
if (nTips[0] >= int32(INT_FAST16_MAX)) {
if (INT_FAST16_MAX < INT_MAX && // Supress warning of tautological comparison
nTips[0] >= int32(INT_FAST16_MAX)) {
Rcpp::stop("nTips must be < 32768");
}
if (nTips[0] < 4) {
Expand Down

0 comments on commit a144e9e

Please # to comment.