Properly handle negative x in risingfac(Int, Int).