x64 juce::Variant Warning


#1

[quote]Warning 1 warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
(…\juce\modules\juce_core\juce_core.cpp) \juce\modules\juce_core\containers\juce_Variant.cpp 321
[/quote]

Fixed by adding typecast to integer:

void writeToStream (const ValueUnion& data, OutputStream& output) const
{
    output.writeCompressedInt (1 + (int) data.binaryValue->getSize());

#2

Ah yes, thanks.