Skip to content

Commit

Permalink
Merge pull request #122 from cedar-policy/shaobo-release-2.4.x
Browse files Browse the repository at this point in the history
Cherrypick a bug fix to `release/2.4.x`
  • Loading branch information
shaobo-he-aws authored Sep 13, 2023
2 parents c25d35e + 7af9bd2 commit 548e78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cedar-policy-generators/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl<'a> ExprGenerator<'a> {
u: &mut Unstructured<'_>,
) -> Result<ast::Expr> {
if self.should_generate_unknown(max_depth, u)? {
let v = self.generate_value_for_type(target_type, max_depth - 1, u)?;
let v = self.generate_value_for_type(target_type, max_depth, u)?;
let name = self.unknown_pool.alloc(target_type.clone(), v);
Ok(ast::Expr::unknown(name))
} else {
Expand Down

0 comments on commit 548e78e

Please sign in to comment.