mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include <QString>
|
||||
#include "RideFile.h"
|
||||
|
||||
#include <pyport.h> // 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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user