diff options
author | James Henstridge <james@jamesh.id.au> | 2008-05-05 15:00:50 +0800 |
---|---|---|
committer | James Henstridge <james@jamesh.id.au> | 2008-05-05 15:00:50 +0800 |
commit | e192c603fadb0d79db2851c8d0a48cf514139cbb (patch) | |
tree | 233e79d96b25c7e740c1b74228a1bb4b15e1acbd | |
parent | 82557e65a21e728fe52c5a8bd5f598dd1a38d9cd (diff) | |
download | psycopg2-e192c603fadb0d79db2851c8d0a48cf514139cbb.tar.gz |
Fix up structmember definitions to match real types. T_LONG is not the
same as T_INT/T_UINT on AMD64 ...
-rw-r--r-- | psycopg/lobject_type.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/lobject_type.c b/psycopg/lobject_type.c index b559a58..3bcd434 100644 --- a/psycopg/lobject_type.c +++ b/psycopg/lobject_type.c @@ -231,9 +231,9 @@ static struct PyMethodDef lobjectObject_methods[] = { /* object member list */ static struct PyMemberDef lobjectObject_members[] = { - {"oid", T_LONG, offsetof(lobjectObject, oid), RO, + {"oid", T_UINT, offsetof(lobjectObject, oid), RO, "The backend OID associated to this lobject."}, - {"closed", T_LONG, offsetof(lobjectObject, closed), RO, + {"closed", T_INT, offsetof(lobjectObject, closed), RO, "The if the large object is closed (no file-like methods)."}, {"mode", T_STRING, offsetof(lobjectObject, smode), RO, "Open mode ('r', 'w', 'rw' or 'n')."}, |