File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ namespace lexer
523
523
// so in every other case we want unary +/-.
524
524
// note: a sane implementation would just return false if isdigit() was passed something weird, like a negative number
525
525
// (because we tried to dissect a UTF-8 codepoint). so we just check if it's ascii first, which would solve the issue.
526
- else if ((!stream.empty () && (isascii (stream[0 ]) && isdigit (stream[0 ]) || shouldConsiderUnaryLiteral (stream, pos)))
526
+ else if ((!stream.empty () && (( isascii (stream[0 ]) && isdigit (stream[0 ]) ) || shouldConsiderUnaryLiteral (stream, pos)))
527
527
/* handle cases like '+ 3' or '- 14' (ie. space between sign and number) */
528
528
&& ((isascii (stream[0 ]) && isdigit (stream[0 ]) ? true : false ) || (stream.size () > 1 && isascii (stream[1 ]) && isdigit (stream[1 ]))))
529
529
{
Original file line number Diff line number Diff line change @@ -523,7 +523,6 @@ namespace parser
523
523
if (st.front () != TT::Identifier)
524
524
expectedAfter (st, " identifier" , " 'trait'" , st.front ().str ());
525
525
526
- auto idloc = st.loc ();
527
526
TraitDefn* defn = util::pool<TraitDefn>(st.loc ());
528
527
defn->name = st.eat ().str ();
529
528
You can’t perform that action at this time.
0 commit comments