Dropped compiler warning on Windows

This commit is contained in:
Daniele Varrazzo 2017-02-24 13:33:42 +00:00
parent 451e1e2e73
commit 72f74d1f41

View File

@ -61,7 +61,7 @@ psyco_diagnostics_get_field(diagnosticsObject *self, void *closure)
Py_RETURN_NONE;
}
errortext = PQresultErrorField(self->err->pgres, (Py_intptr_t) closure);
errortext = PQresultErrorField(self->err->pgres, (int)(Py_intptr_t)closure);
return error_text_from_chars(self->err, errortext);
}