You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@quickstep.apache.org by ha...@apache.org on 2016/06/20 16:54:56 UTC

incubator-quickstep git commit: Added static cast for int.

Repository: incubator-quickstep
Updated Branches:
  refs/heads/decimal-type 169c1f37c -> 76673f5a1


Added static cast for int.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/76673f5a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/76673f5a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/76673f5a

Branch: refs/heads/decimal-type
Commit: 76673f5a1ecd79c54b42805d66c60fe81dc6709f
Parents: 169c1f3
Author: Hakan Memisoglu <ha...@apache.org>
Authored: Mon Jun 20 11:54:39 2016 -0500
Committer: Hakan Memisoglu <ha...@apache.org>
Committed: Mon Jun 20 11:54:39 2016 -0500

----------------------------------------------------------------------
 types/DecimalLit.hpp | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/76673f5a/types/DecimalLit.hpp
----------------------------------------------------------------------
diff --git a/types/DecimalLit.hpp b/types/DecimalLit.hpp
index 0d6933e..1006927 100644
--- a/types/DecimalLit.hpp
+++ b/types/DecimalLit.hpp
@@ -257,6 +257,11 @@ struct DecimalLit {
     data_ = (data_ * kMaxFractionInt) / other.data_;
     return *this;
   }
+
+  inline operator int() const {
+    return static_cast<int>(getIntegerPart());
+  }
+
 };
 
 //** @} */