Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
2730e08a
Commit
2730e08a
authored
May 25, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Getting rid of the stupid "Consider using more parens!" warning.
parent
707e3b75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
functions.cpp
functions.cpp
+6
-5
No files found.
functions.cpp
View file @
2730e08a
...
...
@@ -606,7 +606,8 @@ namespace Sass {
Node
n2
(
bindings
[
parameters
[
1
]]);
Node
::
Type
t1
=
n1
.
type
();
Node
::
Type
t2
=
n2
.
type
();
if
(
t1
==
Node
::
number
&&
n2
.
is_numeric
()
||
n1
.
is_numeric
()
&&
t2
==
Node
::
number
)
{
if
((
t1
==
Node
::
number
&&
n2
.
is_numeric
())
||
(
n1
.
is_numeric
()
&&
t2
==
Node
::
number
))
{
return
new_Node
(
Node
::
boolean
,
n1
.
path
(),
n1
.
line
(),
true
);
}
else
if
(
t1
==
Node
::
numeric_percentage
&&
t2
==
Node
::
numeric_percentage
)
{
...
...
@@ -615,10 +616,10 @@ namespace Sass {
else
if
(
t1
==
Node
::
numeric_dimension
&&
t2
==
Node
::
numeric_dimension
)
{
string
u1
(
n1
.
unit
().
to_string
());
string
u2
(
n2
.
unit
().
to_string
());
if
(
u1
==
"ex"
&&
u2
==
"ex"
||
u1
==
"em"
&&
u2
==
"em"
||
(
u1
==
"in"
||
u1
==
"cm"
||
u1
==
"mm"
||
u1
==
"pt"
||
u1
==
"pc"
)
&&
(
u2
==
"in"
||
u2
==
"cm"
||
u2
==
"mm"
||
u2
==
"pt"
||
u2
==
"pc"
))
{
if
(
(
u1
==
"ex"
&&
u2
==
"ex"
)
||
(
u1
==
"em"
&&
u2
==
"em"
)
||
(
(
u1
==
"in"
||
u1
==
"cm"
||
u1
==
"mm"
||
u1
==
"pt"
||
u1
==
"pc"
)
&&
(
u2
==
"in"
||
u2
==
"cm"
||
u2
==
"mm"
||
u2
==
"pt"
||
u2
==
"pc"
)
))
{
return
new_Node
(
Node
::
boolean
,
n1
.
path
(),
n1
.
line
(),
true
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment