Made a change to astronomy.cs template that didn't get checked in.

This commit is contained in:
Don Cross
2020-08-24 21:06:50 -04:00
parent 8f16f0a5ae
commit 9de3be62d3

View File

@@ -3263,7 +3263,7 @@ namespace CosineKitty
{
int index = (int) Math.Floor(frac);
if (index < 0)
return index;
return 0;
if (index >= nsteps)
return nsteps-1;
return index;