Merge pull request #798 from simartin/ticket_7452_nomin
No need to use std::min() in normalizeCharacterLiteral.
This commit is contained in:
commit
9ea9ae6b87
|
@ -393,7 +393,7 @@ std::string MathLib::normalizeCharacterLiteral(const std::string& iLiteral)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Single digit octal number
|
// Single digit octal number
|
||||||
if (1 == std::min<unsigned>(3, iLiteralLen - idx)) {
|
if (1 == iLiteralLen - idx) {
|
||||||
switch (iLiteral[idx]) {
|
switch (iLiteral[idx]) {
|
||||||
case '0':
|
case '0':
|
||||||
case '1':
|
case '1':
|
||||||
|
|
Loading…
Reference in New Issue