The zero case is handled by the next 'else if' clause. 

+1 to just warning on negative input. Fixed and coming up in next commit.