Browse Source

VST3: Fixed some intellisense arithmetic overflow warnings

tags/2021-05-28
ed 4 years ago
parent
commit
d8542481fd
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 6
- 6
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -1357,13 +1357,13 @@ private:
auto transformScale = std::sqrt (std::abs (editor->getTransform().getDeterminant()));
auto minW = (double) ((float) constrainer->getMinimumWidth() * transformScale);
auto maxW = (double) ((float) constrainer->getMaximumWidth() * transformScale);
auto minH = (double) ((float) constrainer->getMinimumHeight() * transformScale);
auto maxH = (double) ((float) constrainer->getMaximumHeight() * transformScale);
auto minW = (double) constrainer->getMinimumWidth() * transformScale;
auto maxW = (double) constrainer->getMaximumWidth() * transformScale;
auto minH = (double) constrainer->getMinimumHeight() * transformScale;
auto maxH = (double) constrainer->getMaximumHeight() * transformScale;
auto width = (double) (rectToCheck->right - rectToCheck->left);
auto height = (double) (rectToCheck->bottom - rectToCheck->top);
auto width = (double) rectToCheck->right - (double) rectToCheck->left;
auto height = (double) rectToCheck->bottom - (double) rectToCheck->top;
width = jlimit (minW, maxW, width);
height = jlimit (minH, maxH, height);


Loading…
Cancel
Save