avoid calculating prec_start+1 up to three times

Just a minor optimization.