On Fri, 13 Sep 2002, Sean O'Rourke wrote:

> On Fri, 13 Sep 2002, Andy Dougherty wrote:
> 
> > This test tests for
> >
> > 12! = 479001600
> > 14! = 1278945280
> >
> > However, 14! is really 87178291200.
> >
> > Is the test deliberately trying to test for some 32-bit-specific
> > integer overflow behavior?
> 
> No, it's just testing recursive functions.  14! % 2^32 happens to be
> 1278945280.  The test could use some other function (like making the mod
> explicit, for example).

That's what I would have thought, but it seems that 12! is already testing
recursive functions.  Unless there's an objection, I'll just delete the
14! test.

-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to