1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

Added a compatibility fix for older compilers

This commit is contained in:
tpoole 2017-07-22 21:12:23 +01:00
parent 7e6a650e8c
commit ebce454514

View file

@ -198,7 +198,7 @@ public:
while (text.isDigit())
{
if (currentCharacter == std::end (buffer) - 1)
if (currentCharacter == &buffer[bufferSize - 1])
return std::numeric_limits<double>::quiet_NaN();
int digit = (int) text.getAndAdvance() - '0';