From 3293b07df58a875afaf3fc82c1e499af59bc99e4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 25 Aug 1998 16:07:15 +0000 Subject: Patch by Mark Hammond to support 64-bit ints on MS platforms. The MS compiler doesn't call it 'long long', it uses __int64, so a new #define, LONG_LONG, has been added and all occurrences of 'long long' are replaced with it. --- Python/getargs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Python/getargs.c') diff --git a/Python/getargs.c b/Python/getargs.c index 34e3a5cf66..86fd471a87 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -500,11 +500,11 @@ convertsimple1(arg, p_format, p_va) } #if HAVE_LONG_LONG - case 'L': /* long long */ + case 'L': /* LONG_LONG */ { - long long *p = va_arg( *p_va, long long * ); - long long ival = PyLong_AsLongLong( arg ); - if( ival == (long long)-1 && PyErr_Occurred() ) { + LONG_LONG *p = va_arg( *p_va, LONG_LONG * ); + LONG_LONG ival = PyLong_AsLongLong( arg ); + if( ival == (LONG_LONG)-1 && PyErr_Occurred() ) { return "long"; } else { *p = ival; @@ -1003,9 +1003,9 @@ skipitem(p_format, p_va) } #if HAVE_LONG_LONG - case 'L': /* long long int */ + case 'L': /* LONG_LONG int */ { - (void) va_arg(*p_va, long long *); + (void) va_arg(*p_va, LONG_LONG *); break; } #endif -- cgit v1.2.1