From 87cb1b7b062840c561774ad5e9868e3e4cf30cd8 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 24 Feb 2012 11:55:35 +0000 Subject: [PATCH] Clang compatibility fix. --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm index 8f4efc3134..06c714d841 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm @@ -129,7 +129,7 @@ void* attachComponentToWindowRef (Component* comp, void* windowRef) // HIView into the host's carbon window, and then catching events to see when it gets repositioned HIViewRef dummyView = 0; HIImageViewCreate (0, &dummyView); - HIRect r = { {0, 0}, {comp->getWidth(), comp->getHeight()} }; + HIRect r = { {0, 0}, { (float) comp->getWidth(), (float) comp->getHeight()} }; HIViewSetFrame (dummyView, &r); HIViewAddSubview (parentView, dummyView); comp->getProperties().set ("dummyViewRef", String::toHexString ((pointer_sized_int) (void*) dummyView));