Skip to content

Commit

Permalink
fix #6114
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jul 18, 2022
1 parent 527914d commit 393c63f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/c++/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ void enum_sort_example() {
sort s = ctx.enumeration_sort("enumT", 3, enum_names, enum_consts, enum_testers);
// enum_consts[0] is a func_decl of arity 0.
// we convert it to an expression using the operator()
expr a = enum_consts[0]();
expr b = enum_consts[1]();
expr a = enum_consts[0u]();
expr b = enum_consts[1u]();
expr x = ctx.constant("x", s);
expr test = (x==a) && (x==b);
std::cout << "1: " << test << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/api/c++/z3++.h
Original file line number Diff line number Diff line change
Expand Up @@ -2894,7 +2894,7 @@ namespace z3 {
if (n == 0)
return ctx().bool_val(true);
else if (n == 1)
return operator[](0);
return operator[](0u);
else {
array<Z3_ast> args(n);
for (unsigned i = 0; i < n; i++)
Expand Down

0 comments on commit 393c63f

Please sign in to comment.