Skip to content

Commit 146a334

Browse files
committed
Merge pull request #1867 from mgreter/test/travis-ci
Fix MSVC 2013+ compilation
2 parents 06a98ec + 3150382 commit 146a334

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/parser.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ namespace Sass {
10681068
exactly<'{'>,
10691069
exactly<')'>,
10701070
exactly<':'>,
1071-
exactly<0>,
1071+
end_of_file,
10721072
exactly<ellipsis>,
10731073
default_flag,
10741074
global_flag
@@ -1094,7 +1094,7 @@ namespace Sass {
10941094
exactly<'{'>,
10951095
exactly<')'>,
10961096
exactly<':'>,
1097-
exactly<0>,
1097+
end_of_file,
10981098
exactly<ellipsis>,
10991099
default_flag,
11001100
global_flag
@@ -1121,7 +1121,7 @@ namespace Sass {
11211121
exactly<')'>,
11221122
exactly<','>,
11231123
exactly<':'>,
1124-
exactly<0>,
1124+
end_of_file,
11251125
exactly<ellipsis>,
11261126
default_flag,
11271127
global_flag
@@ -1139,7 +1139,7 @@ namespace Sass {
11391139
exactly<')'>,
11401140
exactly<','>,
11411141
exactly<':'>,
1142-
exactly<0>,
1142+
end_of_file,
11431143
exactly<ellipsis>,
11441144
default_flag,
11451145
global_flag
@@ -1203,7 +1203,7 @@ namespace Sass {
12031203
> >(position))
12041204
{
12051205
// is directly adjancent to expression?
1206-
bool left_ws = peek < css_comments >();
1206+
bool left_ws = peek < css_comments >() != NULL;
12071207
// parse the operator
12081208
enum Sass_OP op
12091209
= lex<kwd_eq>() ? Sass_OP::EQ
@@ -1215,10 +1215,10 @@ namespace Sass {
12151215
// we checked the possibilites on top of fn
12161216
: Sass_OP::EQ;
12171217
// is directly adjancent to expression?
1218-
bool right_ws = peek < css_comments >();
1218+
bool right_ws = peek < css_comments >() != NULL;
12191219
operators.push_back({ op, left_ws, right_ws });
12201220
operands.push_back(parse_expression());
1221-
left_ws = peek < css_comments >();
1221+
left_ws = peek < css_comments >() != NULL;
12221222
}
12231223
// parse the operator
12241224
return fold_operands(lhs, operands, operators);
@@ -1247,7 +1247,7 @@ namespace Sass {
12471247

12481248
std::vector<Expression*> operands;
12491249
std::vector<Operand> operators;
1250-
bool left_ws = peek < css_comments >();
1250+
bool left_ws = peek < css_comments >() != NULL;
12511251
while (
12521252
lex_css< exactly<'+'> >() ||
12531253

@@ -1259,10 +1259,10 @@ namespace Sass {
12591259
) {
12601260

12611261

1262-
bool right_ws = peek < css_comments >();
1262+
bool right_ws = peek < css_comments >() != NULL;
12631263
operators.push_back({ lexed.to_string() == "+" ? Sass_OP::ADD : Sass_OP::SUB, left_ws, right_ws });
12641264
operands.push_back(parse_operators());
1265-
left_ws = peek < css_comments >();
1265+
left_ws = peek < css_comments >() != NULL;
12661266
}
12671267

12681268
if (operands.size() == 0) return lhs;

0 commit comments

Comments
 (0)