quickstep-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hakanmemiso...@apache.org
Subject incubator-quickstep git commit: Added static cast for int.
Date Mon, 20 Jun 2016 16:54:56 GMT
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 <hakanmemisoglu@apache.org>
Authored: Mon Jun 20 11:54:39 2016 -0500
Committer: Hakan Memisoglu <hakanmemisoglu@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());
+  }
+
 };
 
 //** @} */


Mime
View raw message