]> granicus.if.org Git - python/commit
long_true_divide: reliably force underflow to 0 when the denominator
authorTim Peters <tim.peters@gmail.com>
Thu, 6 Sep 2001 21:59:14 +0000 (21:59 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 6 Sep 2001 21:59:14 +0000 (21:59 +0000)
commite56ed9ba1513b3719ce0fe8b85da6b3367d7da64
treeb2c6af7466a17148f03a1a21cb86cac253a9e654
parent8bce4acb17ee7146c5736ad020ea0e129bd7f67b
long_true_divide:  reliably force underflow to 0 when the denominator
has more bits than the numerator than can be counted in a C int (yes,
that's unlikely, and no, I'm not adding a test case with a 2 gigabit
long).
Objects/longobject.c