Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
8e556fc1
Commit
8e556fc1
authored
Jun 26, 2014
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix reversing of >= and <= compare operations
Just noticed that they are also wrong
parent
d6deccbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/core/ast.cpp
src/core/ast.cpp
+2
-2
No files found.
src/core/ast.cpp
View file @
8e556fc1
...
...
@@ -168,11 +168,11 @@ std::string getReverseOpName(int op_type) {
if
(
op_type
==
AST_TYPE
::
Lt
)
return
getOpName
(
AST_TYPE
::
Gt
);
if
(
op_type
==
AST_TYPE
::
LtE
)
return
getOpName
(
AST_TYPE
::
Gt
);
return
getOpName
(
AST_TYPE
::
Gt
E
);
if
(
op_type
==
AST_TYPE
::
Gt
)
return
getOpName
(
AST_TYPE
::
Lt
);
if
(
op_type
==
AST_TYPE
::
GtE
)
return
getOpName
(
AST_TYPE
::
Lt
);
return
getOpName
(
AST_TYPE
::
Lt
E
);
if
(
op_type
==
AST_TYPE
::
NotEq
)
return
getOpName
(
AST_TYPE
::
NotEq
);
if
(
op_type
==
AST_TYPE
::
Eq
)
...
...
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