Browse Source

Added a compatibility fix for older compilers

tags/2021-05-28
tpoole 8 years ago
parent
commit
ebce454514
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/text/juce_CharacterFunctions.h

+ 1
- 1
modules/juce_core/text/juce_CharacterFunctions.h View File

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


Loading…
Cancel
Save