diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index fdc4ccc5b3..95b2017942 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -14325,7 +14325,7 @@ void ReadWriteLock::exitRead() const throw() { if (readerThreads.getUnchecked(i) == threadId) { - const int newCount = ((int) (Thread::ThreadID) readerThreads.getUnchecked (i + 1)) - 1; + const pointer_sized_int newCount = ((pointer_sized_int) readerThreads.getUnchecked (i + 1)) - 1; if (newCount == 0) { @@ -14334,7 +14334,7 @@ void ReadWriteLock::exitRead() const throw() } else { - readerThreads.set (i + 1, (Thread::ThreadID) (pointer_sized_int) newCount); + readerThreads.set (i + 1, (Thread::ThreadID) newCount); } return; diff --git a/src/juce_core/threads/juce_ReadWriteLock.cpp b/src/juce_core/threads/juce_ReadWriteLock.cpp index 01d6630c03..7f5b550fd1 100644 --- a/src/juce_core/threads/juce_ReadWriteLock.cpp +++ b/src/juce_core/threads/juce_ReadWriteLock.cpp @@ -99,7 +99,7 @@ void ReadWriteLock::exitRead() const throw() { if (readerThreads.getUnchecked(i) == threadId) { - const int newCount = ((int) (Thread::ThreadID) readerThreads.getUnchecked (i + 1)) - 1; + const pointer_sized_int newCount = ((pointer_sized_int) readerThreads.getUnchecked (i + 1)) - 1; if (newCount == 0) { @@ -108,7 +108,7 @@ void ReadWriteLock::exitRead() const throw() } else { - readerThreads.set (i + 1, (Thread::ThreadID) (pointer_sized_int) newCount); + readerThreads.set (i + 1, (Thread::ThreadID) newCount); } return;