diff Python/modsupport.c @ 9044:d437b6683e24 legacy-trunk

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.
author Guido van Rossum <guido@python.org>
date Tue, 25 Aug 1998 16:07:15 +0000
parents 492363d6bc94
children 24ca64134594
line wrap: on
line diff
--- a/Python/modsupport.c	Tue Aug 25 15:27:36 1998 +0000
+++ b/Python/modsupport.c	Tue Aug 25 16:07:15 1998 +0000
@@ -293,7 +293,7 @@
 
 #if HAVE_LONG_LONG
 		case 'L':
-			return PyLong_FromLongLong((long long)va_arg(*p_va, long long));
+			return PyLong_FromLongLong((LONG_LONG)va_arg(*p_va, LONG_LONG));
 #endif
 
 		case 'f':