lib/sxp/reader/basic.rb in sxp-1.2.3 vs lib/sxp/reader/basic.rb in sxp-1.2.4

- old
+ new

@@ -24,10 +24,10 @@ # @return [Object] def read_atom case buffer = read_literal when '.' then buffer.to_sym when RATIONAL then Rational($1.to_i, $2.to_i) - when DECIMAL then Float(buffer) # FIXME? + when DECIMAL then Float(buffer.end_with?('.') ? "#{buffer}0" : buffer) when INTEGER then Integer(buffer) else buffer.to_sym end end