Fix bug in finv.c

finvのバグを修正