fixed tau_leap C version