mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 17:36:15 +00:00
Fix Python FiniteDomainSortRef.size()
This commit is contained in:
parent
a2f907c7d1
commit
7b91195770
1 changed files with 2 additions and 2 deletions
|
@ -6818,8 +6818,8 @@ class FiniteDomainSortRef(SortRef):
|
||||||
|
|
||||||
def size(self):
|
def size(self):
|
||||||
"""Return the size of the finite domain sort"""
|
"""Return the size of the finite domain sort"""
|
||||||
r = (ctype.c_ulonglong * 1)()
|
r = (ctypes.c_ulonglong * 1)()
|
||||||
if Z3_get_finite_domain_sort_size(self.ctx_ref(), self.ast(), r):
|
if Z3_get_finite_domain_sort_size(self.ctx_ref(), self.ast, r):
|
||||||
return r[0]
|
return r[0]
|
||||||
else:
|
else:
|
||||||
raise Z3Exception("Failed to retrieve finite domain sort size")
|
raise Z3Exception("Failed to retrieve finite domain sort size")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue