Long overflow problem

Andrew Koenig ark at research.att.com
Wed Nov 6 15:27:28 EST 2002


Tom> If I call the function as such: myFunc(2382373743L, 2382772391L), I get 
Tom> the following error:

Tom> OverflowError: Long int too long to convert to int. 

Tom> I can't seem to get myFunc to understand that i and j are long integers. 
Tom> How would I go about doing this?

It looks like myFunc is trying to do something with one of its
arguments that requires an int and will not accept a long.
Without seeing what myFunc does, it's hard to know what that
operation might be.

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark



More information about the Python-list mailing list