From 921816b5a1b2685ad241b19b62386de0d1319451 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 1 Jan 2015 04:59:07 +0000 Subject: [PATCH] Fix win32 warning --- source/plugin/carla-lv2-export.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/plugin/carla-lv2-export.cpp b/source/plugin/carla-lv2-export.cpp index 5f3485d7d..5a54b2cc9 100644 --- a/source/plugin/carla-lv2-export.cpp +++ b/source/plugin/carla-lv2-export.cpp @@ -67,7 +67,11 @@ static const String nameToSymbol(const String& name, const uint32_t portIndex) { for (int i=0; i < trimmedName.length(); ++i) { +#ifdef CARLA_OS_WIN + const int32_t c = static_cast(trimmedName[i]); +#else const juce_wchar c = trimmedName[i]; +#endif if (i == 0 && std::isdigit(c)) symbol += "_"; else if (std::isalpha(c) || std::isdigit(c))