fixed problem with var...probably a conversion problem for fixed in size capabilities

adding fixed type tests

Removing bitshift and regrouping fixed type tests together
This commit is contained in:
RJ Catalano
2016-05-09 11:41:02 -05:00
committed by VoR0220
parent dff1a26f55
commit 91fda50922
3 changed files with 73 additions and 5 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ bool ConstantNumberType::isValidLiteral(Literal const& _literal)
{
//problem here. If the first digit is a 0 in the string, it won't
//turn it into a integer...Using find if not to count the leading 0s.
auto leadingZeroes = find_if_not(
radixPoint + 1,
_literal.value().end(),
+2 -2
View File
@@ -153,9 +153,9 @@ tuple<Token::Value, unsigned int, unsigned int> Token::fromIdentifierOrKeyword(s
positionM < positionX &&
positionX < _literal.end() &&
*positionX == 'x' &&
all_of(positionX++, _literal.end(), ::isdigit)
all_of(++positionX, _literal.end(), ::isdigit)
) {
int n = parseSize(positionX + 1, _literal.end());
int n = parseSize(positionX, _literal.end());
if (
0 <= m && m <= 256 &&
0 <= n && n <= 256 &&