storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptgo...@apache.org
Subject [2/5] git commit: STORM-186 convert 1000 to long to avoid int overflow
Date Wed, 05 Mar 2014 19:54:09 GMT
STORM-186 convert 1000 to long to avoid int overflow


Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/7ed8879a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/7ed8879a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/7ed8879a

Branch: refs/heads/master
Commit: 7ed8879a1fdb27df6848bf2921f8cef89408f2ef
Parents: 15c4890
Author: Kang Xiao <kxiao.tiger@gmail.com>
Authored: Thu Feb 20 12:49:45 2014 +0800
Committer: Kang Xiao <kxiao.tiger@gmail.com>
Committed: Thu Feb 20 12:49:45 2014 +0800

----------------------------------------------------------------------
 storm-core/src/clj/backtype/storm/util.clj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/7ed8879a/storm-core/src/clj/backtype/storm/util.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/backtype/storm/util.clj b/storm-core/src/clj/backtype/storm/util.clj
index a8f238a..580e950 100644
--- a/storm-core/src/clj/backtype/storm/util.clj
+++ b/storm-core/src/clj/backtype/storm/util.clj
@@ -221,7 +221,7 @@
   (Time/currentTimeMillis))
 
 (defn secs-to-millis-long [secs]
-  (long (* 1000 secs)))
+  (long (* (long 1000) secs)))
 
 (defn clojurify-structure [s]
   (prewalk (fn [x]


Mime
View raw message