commit | 7a2d6112d95d5944b60b78232a5a75570db6e76a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Aug 02 02:41:13 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Aug 02 02:41:13 1997 +0000 |
tree | dee3ef4409be19c87a7000ec0befc04c6656c5ef | |
parent | 2981bc7a65031f3661c401bddf78102c1e7e979e [diff] |
Add cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg.
diff --git a/Include/intobject.h b/Include/intobject.h index d9fd68f..cd66f75 100644 --- a/Include/intobject.h +++ b/Include/intobject.h
@@ -83,7 +83,7 @@ #define Py_True ((PyObject *) &_Py_TrueStruct) /* Macro, trading safety for speed */ -#define PyInt_AS_LONG(op) ((op)->ob_ival) +#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival) #ifdef __cplusplus }