Skip to content

Commit

Permalink
Address @laura-ding's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor committed Jul 24, 2019
1 parent 92563ac commit 48bebf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.swp
*.so

build
_build
_build.log
_install
Expand Down
4 changes: 2 additions & 2 deletions src/common/filter/Expressions.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ class Expression {
return boost::get<int64_t>(value);
case 1:
return static_cast<int64_t>(boost::get<double>(value));
case 3:
case 2:
return boost::get<bool>(value) ? 1.0 : 0.0;
case 4:
case 3:
return boost::get<int64_t>(value);
}
LOG(FATAL) << "unknown type: " << value.which();
Expand Down

0 comments on commit 48bebf6

Please sign in to comment.