From 27ae0f21b11d54d782be6c3dcfad2b3d7185f06d Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Mon, 3 Jun 2013 17:01:55 -0700 Subject: [PATCH] Fix for test_lift on windows (should use c_ssize_t instead of c_long) --- blaze/playground/test_lift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blaze/playground/test_lift.py b/blaze/playground/test_lift.py index 8abcd9f3f..1ab6079c1 100644 --- a/blaze/playground/test_lift.py +++ b/blaze/playground/test_lift.py @@ -28,7 +28,7 @@ def create_func(mod): def _convert(arr, struct): address, count = arr.buffer_info() buff = ctypes.cast(address, ctypes.POINTER(ctypes.c_double)) - shape = (ctypes.c_long * 1)(count) + shape = (ctypes.c_ssize_t * 1)(count) val = struct(buff, shape) return val