I have just compiled one project with JUCE 8 preview branch. It shows the following warning:
JUCE/modules/juce_core/text/juce_String.cpp:366:75: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
String::String (const char8_t* t, size_t maxChars) : String (fromUTF8 (t, maxChars)) {}
The line 366 is:
String::String (const char8_t* t, size_t maxChars) : String (fromUTF8 (t, maxChars)) {}
where the type of the second argument of fromUTF8()
is int
.