Correct test for number of arguments to append.

From-SVN: r168163
This commit is contained in:
Ian Lance Taylor 2010-12-22 06:33:02 +00:00
parent 8e6c2a27c5
commit d7ab2512cd

View file

@ -7382,7 +7382,7 @@ Builtin_call_expression::do_check_types(Gogo*)
case BUILTIN_APPEND:
{
const Expression_list* args = this->args();
if (args == NULL || args->empty())
if (args == NULL || args->size() < 2)
{
this->report_error(_("not enough arguments"));
break;