fix error data type in Python binding

This commit is contained in:
virusdefender 2017-08-14 13:45:19 +08:00
parent 50da8734d5
commit 1b3f8de5e5

View File

@ -108,7 +108,7 @@ static PyObject *judger_run(PyObject *self, PyObject *args, PyObject *kwargs) {
judger_run = dlsym(handler, "run");
judger_run(&_config, &_result);
return Py_BuildValue("{s:l, s:l, s:i, s:i, s:i, s:i, s:i}",
return Py_BuildValue("{s:i, s:l, s:i, s:i, s:i, s:i, s:i}",
"cpu_time", _result.cpu_time,
"memory", _result.memory,
"real_time", _result.real_time,