John Cupitt 3996f3279b fix range clips for casts to and from int
Fix two bugs:

- clip in casts from int32 and uint32 could overflow -- do these as gint64 now

- clip in casts from float to int could overflow since float32 can't
  represent the full range of int32 without losing precision -- do these
  as double

And add some more tests.

Thanks ewelot.

see https://github.com/libvips/libvips/issues/1922
2020-12-09 15:14:59 +00:00
..
2019-11-27 11:48:50 +00:00
2020-11-23 14:40:59 +01:00
2019-11-27 11:48:50 +00:00
2020-06-18 14:21:43 +02:00