Comment Comment by fleventynine > If you call a method which returns an unsigned int, how do you safely pass it to a method which accepts a signed int?The same way you pass a 64-bit integer to a function that expects a 32-bit integer: a conversion function that raises an error if it's out of range. parent fleventynine 1 year ago
The same way you pass a 64-bit integer to a function that expects a 32-bit integer: a conversion function that raises an error if it's out of range.