Skip to content

Releases: fortio/safecast

v1.2.0

29 Aug 19:02
30773bb
Compare
Choose a tag to compare

#22

  • Now handles any ~float{32|64} for the edge cases (was only edge case check for +Inf etc using actual float32/float64)
  • Fix strange issue only appearing in armhf with maxuint32

Full Changelog: v1.1.0...v1.2.0

v1.1.0

26 Aug 17:45
c51d55f
Compare
Choose a tag to compare

What's Changed

#17

  • Added a simpler safecast.Conv and safecast.MustConv that only deal with Integers (leaving Convert for backward compatibility and to/from floats)
  • Fix issue with max int32/int64 conversion to float 32

Also

Thanks @hrissan for digging up a number of interesting corner cases which we fixed now.

New Contributors

Full Changelog: v1.0.0...v1.1.0

v1.0.0

19 Sep 16:34
f3c7bc0
Compare
Choose a tag to compare

This is functionally same as v0.1.1 except with slightly smaller API surface (removed Negative() and SameSign()) as well as cover the odd case of MaxUInt64 which should error when converting to float64 and float32.

No (other) bugs have been found in the previous release so this should be now ready for 1.0.0 🎉

What's Changed

Full Changelog: v0.1.1...v1.0.0

v0.1.1: Initial release from new location

15 Sep 23:10
41ec9aa
Compare
Choose a tag to compare