A switch safety default statement.

Former-commit-id: 83924f9b7186028b9775fab3e0f1b12ecbc309f0
This commit is contained in:
Marek Nečada 2018-08-27 07:50:37 +03:00
parent ee0086ccf5
commit 467c82c444
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ complex double * hankelcoefftable_init(size_t maxn) {
case 3:
ifactor = I;
break;
default:
abort();
}
// the result should be integer, so round to remove inaccuracies
hcs[k] = round(exp(lcoeff)) * ifactor;