summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Taggart <ataggart@mercury.local>2010-10-17 00:10:11 -0700
committerStuart Halloway <stu@thinkrelevance.com>2010-11-05 08:45:10 -0700
commitb0fda0900001e08ee6fecd2091608036eeeebefd (patch)
tree717175ae37ecb4cebe0520188a5292cf75a50056 /src
parent49b05680354271062cfcaf4b5001b35296f3a94b (diff)
add conversion from BigInt to BigInteger
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Diffstat (limited to 'src')
-rw-r--r--src/clj/clojure/core.clj1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index 4cdf794d..b6fe498a 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -3122,6 +3122,7 @@
:static true}
[x] (cond
(instance? BigInteger x) x
+ (instance? clojure.lang.BigInt x) (.toBigInteger ^clojure.lang.BigInt x)
(decimal? x) (.toBigInteger ^BigDecimal x)
(ratio? x) (.bigIntegerValue ^clojure.lang.Ratio x)
(number? x) (BigInteger/valueOf (long x))