From 76eaecab5a4fc0586f16357eaaf0612aef8f276e Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 9 Dec 2017 19:08:00 +0000 Subject: [PATCH] Fixup Py_ssize_t on Windows VS build .. Py_ssize_t is not always a long, so lets use the python type in our bindings to keep the buffer code simple. --- src/Python/SIP/Bindings.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Python/SIP/Bindings.h b/src/Python/SIP/Bindings.h index 1bfc1d3c4..fa7889ce9 100644 --- a/src/Python/SIP/Bindings.h +++ b/src/Python/SIP/Bindings.h @@ -1,6 +1,8 @@ #include #include "RideFile.h" +#include // for Py_ssize_t + class PythonDataSeries { public: @@ -10,7 +12,7 @@ class PythonDataSeries { ~PythonDataSeries(); RideFile::SeriesType series; - long count; + Py_ssize_t count; double *data; };