diff --git a/README.md b/README.md index e7660cd..ac82760 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ nippy/stress-data :nil nil :true true :false false + :False (Boolean. false) :char \ಬ :str-short "ಬಾ ಇಲ್ಲಿ ಸಂಭವಿಸ" :str-long (apply str (range 1000)) diff --git a/src/taoensso/nippy.clj b/src/taoensso/nippy.clj index 38ebb69..9210358 100644 --- a/src/taoensso/nippy.clj +++ b/src/taoensso/nippy.clj @@ -1151,7 +1151,7 @@ (.writeLong out (.getMostSignificantBits x)) (.writeLong out (.getLeastSignificantBits x))) -(freezer Boolean (if x (write-id out id-true) (write-id out id-false))) +(freezer Boolean (if (boolean x) (write-id out id-true) (write-id out id-false))) (freezer (Class/forName "[B") (write-bytes out x)) (freezer (Class/forName "[Ljava.lang.Object;") (write-objects out x)) (freezer String (write-str out x)) @@ -2020,6 +2020,7 @@ :nil nil :true true :false false + :False (Boolean. false) :char \ಬ :str-short "ಬಾ ಇಲ್ಲಿ ಸಂಭವಿಸ" :str-long (apply str (range 1000))