On Fri, 2019-07-19 at 18:46 -0400, Steven Rostedt wrote: > +#if PY_MAJOR_VERSION >= 3 [...] > +#define PY_INT_AS_LONG PyLong_AsLong > #else [...] > +#define PY_INT_AS_LONG PyInt_AS_LONG > +#endif I probably would've gone for only having a single #define PyLong_AsLong PyInt_AS_LONG in the python2 case, but doesn't really matter. Reviewed-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> johannes
![]() |