[Python-checkins] r60660 - python/trunk/Modules/_ctypes/libffi/src/x86/ffi_darwin.c

brett.cannon python-checkins at python.org
Thu Feb 7 23:27:10 CET 2008


Author: brett.cannon
Date: Thu Feb  7 23:27:10 2008
New Revision: 60660

Modified:
   python/trunk/Modules/_ctypes/libffi/src/x86/ffi_darwin.c
Log:
Make sure a switch statement does not have repetitive case statements.
Error found through LLVM post-2.1 svn.


Modified: python/trunk/Modules/_ctypes/libffi/src/x86/ffi_darwin.c
==============================================================================
--- python/trunk/Modules/_ctypes/libffi/src/x86/ffi_darwin.c	(original)
+++ python/trunk/Modules/_ctypes/libffi/src/x86/ffi_darwin.c	Thu Feb  7 23:27:10 2008
@@ -146,7 +146,9 @@
     case FFI_TYPE_SINT64:
     case FFI_TYPE_FLOAT:
     case FFI_TYPE_DOUBLE:
+#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
     case FFI_TYPE_LONGDOUBLE:
+#endif
       cif->flags = (unsigned) cif->rtype->type;
       break;
 


More information about the Python-checkins mailing list