I am using Swift to generate some tests with overflowing 32-bit integers. I 
have used the Int32.<op>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.divideWithOverflow(Int32.min, -1)

Is this the expected behaviour?

Regards

Peter
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to