Skip to content

Commit 79dd17b

Browse files
committed
Increase AssertionError arguments allowed from 2 to 3
There is a constructor for this class with 2 arguments plus implied this.
1 parent 5cbb758 commit 79dd17b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-programs/builtin_functions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -969,11 +969,11 @@ void goto_convertt::do_function_call_symbol(
969969

970970
copy(function_call, FUNCTION_CALL, dest);
971971

972-
if(arguments.size()!=1 && arguments.size()!=2)
972+
if(arguments.size() != 1 && arguments.size() != 2 && arguments.size() != 3)
973973
{
974974
error().source_location=function.find_source_location();
975975
error() << "`" << identifier
976-
<< "' expected to have one or two arguments" << eom;
976+
<< "' expected to have one, two or three arguments" << eom;
977977
throw 0;
978978
}
979979

0 commit comments

Comments
 (0)