diff --git a/examples/PluckedStringsDemo/Source/StringSynthesiser.h b/examples/PluckedStringsDemo/Source/StringSynthesiser.h index 385d595743..d1901385e8 100644 --- a/examples/PluckedStringsDemo/Source/StringSynthesiser.h +++ b/examples/PluckedStringsDemo/Source/StringSynthesiser.h @@ -81,7 +81,7 @@ private: //======================================================================= void prepareSynthesiserState (double sampleRate, double frequencyInHz) { - std::size_t delayLineLength = std::lround (sampleRate / frequencyInHz); + size_t delayLineLength = (size_t) roundToInt (sampleRate / frequencyInHz); // we need a minimum delay line length to get a reasonable synthesis. // if you hit this assert, increase sample rate or decrease frequency! diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index b22fab42d5..1bef497845 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -2163,7 +2163,7 @@ private: if (object->getState (&stream) == kResultTrue) { - MemoryBlock info (stream.getData(), (std::size_t) stream.getSize()); + MemoryBlock info (stream.getData(), (size_t) stream.getSize()); head.createNewChildElement (identifier)->addTextElement (info.toBase64Encoding()); } } diff --git a/modules/juce_core/text/juce_String.cpp b/modules/juce_core/text/juce_String.cpp index 1b9fe6bbed..3dbc0c08e6 100644 --- a/modules/juce_core/text/juce_String.cpp +++ b/modules/juce_core/text/juce_String.cpp @@ -566,9 +566,9 @@ struct HashGenerator enum { multiplier = sizeof (Type) > 4 ? 101 : 31 }; }; -int String::hashCode() const noexcept { return HashGenerator ::calculate (text); } -int64 String::hashCode64() const noexcept { return HashGenerator ::calculate (text); } -std::size_t String::hash() const noexcept { return HashGenerator::calculate (text); } +int String::hashCode() const noexcept { return HashGenerator ::calculate (text); } +int64 String::hashCode64() const noexcept { return HashGenerator ::calculate (text); } +size_t String::hash() const noexcept { return HashGenerator ::calculate (text); } //============================================================================== JUCE_API bool JUCE_CALLTYPE operator== (const String& s1, const String& s2) noexcept { return s1.compare (s2) == 0; } diff --git a/modules/juce_core/text/juce_String.h b/modules/juce_core/text/juce_String.h index 6a511070bb..0260acff13 100644 --- a/modules/juce_core/text/juce_String.h +++ b/modules/juce_core/text/juce_String.h @@ -181,7 +181,7 @@ public: int64 hashCode64() const noexcept; /** Generates a probably-unique hashcode from this string. */ - std::size_t hash() const noexcept; + size_t hash() const noexcept; /** Returns the number of characters in the string. */ int length() const noexcept;