Re: [swift-users] Int32.divideWithOverflow

2016-11-09 Thread Dave Abrahams via swift-users
on Wed Nov 09 2016, Peter W A Wood wrote: > I am using Swift to generate some tests with overflowing 32-bit > integers. I have used the Int32.WithOverflow functions but have > come across a problem dividing Int32.min by -1 with overflow. I get an > overflow error: > > error: division '-21474

[swift-users] Int32.divideWithOverflow

2016-11-09 Thread Peter W A Wood via swift-users
I am using Swift to generate some tests with overflowing 32-bit integers. I have used the Int32.WithOverflow functions but have come across a problem dividing Int32.min by -1 with overflow. I get an overflow error: error: division '-2147483648 / -1' results in an overflow Int32.divideWit