tidying up pointers seems to have done the trick
Merge branch 'movingaverage' of github.com:mikedewar/streamtools into movingaverage