commit 47fce5e59c68c7ac1306b7e25dd50d9794133f4f
parent 4a88277d3ddef4c6c6195f2dacb8141469b696ca
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sat, 26 Aug 2017 14:49:54 -0700
fix Windows build
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/api.cpp b/src/api.cpp
@@ -17,6 +17,8 @@
#include "api.hpp"
+#include <cstdio>
+
#include <reaper_plugin_functions.h>
APIDef::APIDef(const APIFunc *func)
diff --git a/src/listview.cpp b/src/listview.cpp
@@ -138,7 +138,7 @@ void ListView::sort()
{
static const auto compare = [](LPARAM aRow, LPARAM bRow, LPARAM param)
{
- const int indexDiff = aRow - bRow;
+ const int indexDiff = (int)(aRow - bRow);
ListView *view = reinterpret_cast<ListView *>(param);