Skip to content

Commit

Permalink
Use integer number format when using Int tag (attempt to improve circ…
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed May 29, 2019
1 parent d70c305 commit f6bf43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/io/circe/yaml/Printer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ final case class Printer(
scalarNode(Tag.BOOL, bool.toString),
number => {
if (number.toLong.nonEmpty)
scalarNode(Tag.INT, number.toString)
scalarNode(Tag.INT, number.toLong.get.toString)
else
scalarNode(Tag.FLOAT, number.toString)
},
Expand Down

0 comments on commit f6bf43f

Please sign in to comment.