forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.0'
Conflicts: src/plugins/qmldesigner/components/formeditor/anchorindicatorgraphicsitem.cpp src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp src/plugins/qmlprofiler/qmlprofilertraceview.cpp Change-Id: I778a0c2d0f1b4f799caaa2c2cc5daf94ec7ca352
This commit is contained in:
@@ -56,7 +56,7 @@ uchar fromhex(uchar c)
|
||||
return 10 + c - 'a';
|
||||
if (c >= 'A' && c <= 'Z')
|
||||
return 10 + c - 'A';
|
||||
return -1;
|
||||
return UCHAR_MAX;
|
||||
}
|
||||
|
||||
void skipCommas(const char *&from, const char *to)
|
||||
@@ -147,7 +147,7 @@ QByteArray GdbMi::parseCString(const char *&from, const char *to)
|
||||
uchar prod = 0;
|
||||
while (true) {
|
||||
uchar val = fromhex(c);
|
||||
if (val == uchar(-1))
|
||||
if (val == UCHAR_MAX)
|
||||
break;
|
||||
prod = prod * 16 + val;
|
||||
if (++chars == 3 || src == end)
|
||||
|
||||
Reference in New Issue
Block a user