Closed umlaeute closed 1 week ago
i have now also tested the develop
branch (4e106a76e834f701858328af3dade2b388669b84), and the build fails as well.
a somewhat naive fix is to just add overload the juce::String
operator for the unsigned int
type;
--- juce.orig/modules/juce_core/text/juce_String.cpp
+++ juce/modules/juce_core/text/juce_String.cpp
@@ -871,6 +871,7 @@
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, uint8 number) { return s1 += (int) number; }
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, short number) { return s1 += (int) number; }
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, int number) { return s1 += number; }
+JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, unsigned int number) { return s1 += String (number); }
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, long number) { return s1 += String (number); }
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, unsigned long number) { return s1 += String (number); }
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, int64 number) { return s1 += String (number); }
--- juce.orig/modules/juce_core/text/juce_String.h
+++ juce/modules/juce_core/text/juce_String.h
@@ -1458,6 +1458,8 @@
/** Appends a decimal number to the end of a string. */
JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, int number);
/** Appends a decimal number to the end of a string. */
+JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, unsigned int number);
+/** Appends a decimal number to the end of a string. */
JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, long number);
/** Appends a decimal number to the end of a string. */
JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, unsigned long number);
Thanks for reporting, a fix has been added here: https://github.com/juce-framework/JUCE/commit/2301f398aaeca268d2bf1db49e01a28f49d4600a
Detailed steps on how to reproduce the bug
build
JUCE
on an x86_32 system (e.g. "Debian/i386").within the x86_32 environment try to build JUCE:
building
juceaide
fails with:What is the expected behaviour?
i would expect the build-process to succeed.
Operating systems
Linux
What versions of the operating systems?
Debian/sid
Architectures
32-bit
Stacktrace
No response
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchI have not tested against the
develop
branchCode of Conduct