-
- Downloads
Fix semantics of ExprNode::maxLag(), maxLead() and maxLagWithDiffsExpanded() with constants
Those methods can return a negative value in some cases. For example, maxLead(x₋₁) = −1. But constants were always returning a value of zero, which means that we had inconsistent behaviour like maxLead(x₋₁ + 2) = 0. This commits fixes the behaviour by making these methods return the smallest possible integer when called on constants.
Loading
Please register or sign in to comment