Document PyModule_AddIntConstant to take a long. Fixes #962471.

Will backport to 2.3.
This commit is contained in:
Martin v. Löwis 2004-06-02 12:45:27 +00:00
parent 04697e89b9
commit dd07e59eee
1 changed files with 1 additions and 1 deletions

View File

@ -2263,7 +2263,7 @@ There are only a few functions special to module objects.
\end{cfuncdesc} \end{cfuncdesc}
\begin{cfuncdesc}{int}{PyModule_AddIntConstant}{PyObject *module, \begin{cfuncdesc}{int}{PyModule_AddIntConstant}{PyObject *module,
char *name, int value} char *name, long value}
Add an integer constant to \var{module} as \var{name}. This Add an integer constant to \var{module} as \var{name}. This
convenience function can be used from the module's initialization convenience function can be used from the module's initialization
function. Returns \code{-1} on error, \code{0} on success. function. Returns \code{-1} on error, \code{0} on success.