diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-09-01 14:34:29 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-09-02 10:42:43 +0000 |
commit | c504e56d0c7fafba4f8c15997e3927b5ca02adc5 (patch) | |
tree | dfbd550a0c62eafe554df8b8dfb89c039e330400 /src/libs/cplusplus/pp-engine.cpp | |
parent | b1ee76047a77b4d23295c3231df3b53b6f5e6a4b (diff) | |
download | qt-creator-c504e56d0c7fafba4f8c15997e3927b5ca02adc5.tar.gz |
C++: Fix MSVC assert in std::isspace()
...when dealing with UTF8 bytes.
std::isspace() expects unsigned char, not char.
Change-Id: I3f9b5e347d79cf94015cc99f8797d5feab406151
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/libs/cplusplus/pp-engine.cpp')
-rw-r--r-- | src/libs/cplusplus/pp-engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp index fa96c54176..93a6e451b4 100644 --- a/src/libs/cplusplus/pp-engine.cpp +++ b/src/libs/cplusplus/pp-engine.cpp @@ -2129,7 +2129,7 @@ void Preprocessor::maybeStartOutputLine() // If previous line ends with \ (possibly followed by whitespace), add another \n const char *start = buffer.constData(); const char *ch = start + buffer.length() - 2; - while (ch > start && (*ch != '\n') && std::isspace(*ch)) + while (ch > start && (*ch != '\n') && pp_isspace(*ch)) --ch; if (*ch == '\\') buffer.append('\n'); |