[Python-checkins] cpython (3.4): fix test where sizeof(long) != sizeof(int)

benjamin.peterson python-checkins at python.org
Thu Nov 6 06:53:28 CET 2014


https://hg.python.org/cpython/rev/d9fbe4fb2afc
changeset:   93412:d9fbe4fb2afc
branch:      3.4
parent:      93410:501edbbb74ff
user:        Benjamin Peterson <benjamin at python.org>
date:        Thu Nov 06 00:52:58 2014 -0500
summary:
  fix test where sizeof(long) != sizeof(int)

files:
  Modules/_ctypes/_ctypes_test.c |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c
--- a/Modules/_ctypes/_ctypes_test.c
+++ b/Modules/_ctypes/_ctypes_test.c
@@ -527,10 +527,10 @@
     return 1;
 }
 
-EXPORT(int left = 10);
-EXPORT(int top = 20);
-EXPORT(int right = 30);
-EXPORT(int bottom = 40);
+EXPORT(long left = 10);
+EXPORT(long top = 20);
+EXPORT(long right = 30);
+EXPORT(long bottom = 40);
 
 EXPORT(RECT) ReturnRect(int i, RECT ar, RECT* br, POINT cp, RECT dr,
                         RECT *er, POINT fp, RECT gr)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list