Bugfix scurve fitter
It's possible in certain circumstances for xlow
to become larger than xhigh
, this will lead to a negative bin number which will be interpreted as an unsigned. Adding warning and fox to prevent seg fault, so this will not fix the source.