* python/py-value.c (valpy_getitem): Fix formatting of error function
call.
This commit is contained in:
parent
7ea6d46330
commit
e10abd8fbe
2 changed files with 6 additions and 1 deletions
|
@ -479,7 +479,7 @@ valpy_getitem (PyObject *self, PyObject *key)
|
|||
type = check_typedef (value_type (tmp));
|
||||
if (TYPE_CODE (type) != TYPE_CODE_ARRAY
|
||||
&& TYPE_CODE (type) != TYPE_CODE_PTR)
|
||||
error( _("Cannot subscript requested type."));
|
||||
error (_("Cannot subscript requested type."));
|
||||
else
|
||||
res_val = value_subscript (tmp, value_as_long (idx));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue