1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windows: Fix warnings when building with clang in 64-bit mode

This commit is contained in:
reuk 2021-06-29 16:32:17 +01:00
parent fe4ba9071b
commit 407966b2ca
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 3 additions and 3 deletions

View file

@ -106,9 +106,9 @@ private:
// a block of memory here that's big enough to be used internally as a windows
// CRITICAL_SECTION structure.
#if JUCE_64BIT
std::aligned_storage<44, 4>::type lock;
std::aligned_storage<44, 8>::type lock;
#else
std::aligned_storage<24, 4>::type lock;
std::aligned_storage<24, 8>::type lock;
#endif
#else
mutable pthread_mutex_t lock;

View file

@ -69,7 +69,7 @@ public:
{
COPYDATASTRUCT data;
data.dwData = broadcastMessageMagicNumber;
data.cbData = ((size_t) localCopy.length() + 1) * sizeof (CharPointer_UTF32::CharType);
data.cbData = (DWORD) (((size_t) localCopy.length() + 1) * sizeof (CharPointer_UTF32::CharType));
data.lpData = (void*) localCopy.toUTF32().getAddress();
DWORD_PTR result;