diff --git a/powershell/ql/lib/semmle/code/powershell/ConstantExpression.qll b/powershell/ql/lib/semmle/code/powershell/ConstantExpression.qll index 11c9b3a4caf..bcf44fa2228 100644 --- a/powershell/ql/lib/semmle/code/powershell/ConstantExpression.qll +++ b/powershell/ql/lib/semmle/code/powershell/ConstantExpression.qll @@ -13,6 +13,8 @@ class ConstExpr extends @constant_expression, BaseConstExpr { private newtype TConstantValue = TConstInteger(int value) { exists(ConstExpr ce | ce.getType() = "Int32" and ce.getValue().getValue().toInt() = value) + or + value = [0 .. 10] // needed for `trackKnownValue` in `DataFlowPrivate` } or TConstDouble(float double) { exists(ConstExpr ce | ce.getType() = "Double" and ce.getValue().getValue().toFloat() = double)