Permalink
Browse files

Fix for parsing larger integers in CSV files.

The code will now attempt to parse as Long instead.
  • Loading branch information...
1 parent 86cc86c commit 3f10c8442eeb7cb368195d44a9d5a94ba7296118 @davidjameshumphreys davidjameshumphreys committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/incanter-io/src/incanter/io.clj
View
2 modules/incanter-io/src/incanter/io.clj
@@ -30,7 +30,7 @@ incanter.io
(defn- parse-string [value]
(if (re-matches #"\d+" value)
- (try (Integer/parseInt value)
+ (try (Long/parseLong value)
(catch NumberFormatException _ value))
(try (Double/parseDouble value)
(catch NumberFormatException _ value))))

0 comments on commit 3f10c84

Please sign in to comment.