small error in the stdlib factorial function

Signed-off-by: Alexander Skjolden <alex@plastboks.net>