progs/factorial.c: Reject negative inputs.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 27 Feb 2015 14:44:45 +0000 (14:44 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 27 Feb 2015 14:46:19 +0000 (14:46 +0000)
commit1f14c0c645ce384406e405000375c7fb9e60cc9e
treeeac4f0b363a9d33f8027c9f681ae527b1bb2689e
parent7a051b72158ef91bc1356cf4f254a92394c93415
progs/factorial.c: Reject negative inputs.

Otherwise they get reduced mod 2^large, and the program takes forever.
It's not like we'd get a better answer by using the full-on Gamma
function, so just report an error.
progs/factorial.c