From 57742a5e133cfaed43f4c51f2dabc57db5134a88 Mon Sep 17 00:00:00 2001 From: hogliux Date: Sun, 16 Oct 2016 12:06:21 +0200 Subject: [PATCH] Fixed warning of MSVC compilers in latest commit --- modules/juce_cryptography/encryption/juce_BlowFish.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_cryptography/encryption/juce_BlowFish.cpp b/modules/juce_cryptography/encryption/juce_BlowFish.cpp index 0c5f0c5898..49b2ff7e75 100644 --- a/modules/juce_cryptography/encryption/juce_BlowFish.cpp +++ b/modules/juce_cryptography/encryption/juce_BlowFish.cpp @@ -286,7 +286,7 @@ void BlowFish::decrypt (MemoryBlock& data) const const int newSize = decrypt (data.getData(), data.getSize()); if (newSize >= 0) - data.setSize (newSize); + data.setSize (static_cast (newSize)); else jassertfalse; } @@ -295,7 +295,7 @@ int BlowFish::encrypt (void* data, size_t size, size_t bufferSize) const noexcep { const int encryptedSize = pad (data, size, bufferSize); - if (encryptedSize >= 0 && apply (data, encryptedSize, &BlowFish::encrypt)) + if (encryptedSize >= 0 && apply (data, static_cast (encryptedSize), &BlowFish::encrypt)) return encryptedSize; return -1; @@ -324,7 +324,7 @@ bool BlowFish::apply (void* data, size_t size, void (BlowFish::*op) (uint32&, ui AlignedAccessHelper* ptr = reinterpret_cast (data); - for (int i = 0; i < n; ++i) + for (size_t i = 0; i < n; ++i) (this->*op) (ptr[i].data[0], ptr[i].data[1]); return true;