Commit 9df2ae8f authored by Jeremy Hylton's avatar Jeremy Hylton

Make _p_changed return a bool instead of an int.

This shouldn't affect any user code, because False == 0 and True == 1.
parent 7ccdbdb6
......@@ -14,7 +14,7 @@
static char cPersistence_doc_string[] =
"Defines Persistent mixin class for persistent objects.\n"
"\n"
"$Id: cPersistence.c,v 1.78 2004/02/20 17:20:16 jeremy Exp $\n";
"$Id: cPersistence.c,v 1.79 2004/03/02 20:22:16 jeremy Exp $\n";
#include "cPersistence.h"
#include "structmember.h"
......@@ -794,7 +794,7 @@ Per_get_changed(cPersistentObject *self)
Py_INCREF(Py_None);
return Py_None;
}
return PyInt_FromLong(self->state == cPersistent_CHANGED_STATE);
return PyBool_FromLong(self->state == cPersistent_CHANGED_STATE);
}
static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment