txdbus icon indicating copy to clipboard operation
txdbus copied to clipboard

UInt64 can't handle 2**64 - 1

Open heftig opened this issue 11 years ago • 1 comments

Attempting to construct a UInt64(2 ** 64 - 1) fails with an OverflowError. I think Int64 and UInt64 should be be based on long, not int, as the latter is only guaranteed to fit 32 bits, signed. Even on x86_64 the signedness prevents its use for UInt64.

heftig avatar Nov 11 '14 12:11 heftig

That's probably right thing to do. My only concern is whether such a change might break existing applications though I suspect it would not.

cocagne avatar Nov 19 '14 16:11 cocagne