mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
move parameter checking to API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
28fb266d8c
commit
adb9117a9e
6 changed files with 10 additions and 9 deletions
|
@ -309,7 +309,8 @@ public:
|
|||
p.display(strm, 2, false, false);
|
||||
throw default_exception(strm.str());
|
||||
}
|
||||
if (it->second.m_kind != expected) {
|
||||
if (it->second.m_kind != expected &&
|
||||
!(it->second.m_kind == CPK_UINT && expected == CPK_NUMERAL)) {
|
||||
std::stringstream strm;
|
||||
strm << "Parameter " << it->first.str() << " was given argument of type ";
|
||||
strm << it->second.m_kind << ", expected " << expected;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue