Author: cito
Date: Fri May 4 17:53:06 2012
New Revision: 431
Log:
Avoid a compiler warning.
Modified:
trunk/module/pgmodule.c
Modified: trunk/module/pgmodule.c
==============================================================================
--- trunk/module/pgmodule.c Fri May 4 17:43:24 2012 (r430)
+++ trunk/module/pgmodule.c Fri May 4 17:53:06 2012 (r431)
@@ -424,7 +424,7 @@
size = 0;
/* size of one row */
for (j = 0; j < n; j++) size += sizes[j] + 1;
- /* times number of rows incl. heading */
+ /* times number of rows incl. heading */
size *= (m + 2);
/* plus size of footer */
size += 40;
@@ -3253,7 +3253,7 @@
if (self->pgcnx && check_cnx_obj(self->pgcnx))
{
Py_INCREF(self->pgcnx);
- return self->pgcnx;
+ return (PyObject *) self->pgcnx;
}
else
{
@@ -3262,11 +3262,11 @@
}
}
- /* full message */
+ /* full message */
if (!strcmp(name, "message"))
return PyString_FromString(PQresultErrorMessage(res));
- /* other possible fields */
+ /* other possible fields */
int fieldcode = 0;
if (!strcmp(name, "severity"))
fieldcode = PG_DIAG_SEVERITY;
@@ -3303,8 +3303,8 @@
return list;
}
- PyErr_Format(PyExc_AttributeError,
- "'pgnoticeobject' has no attribute %s", name);
+ PyErr_Format(PyExc_AttributeError,
+ "'pgnoticeobject' has no attribute %s", name);
return NULL;
}
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql