Hi Peff,

On Tue, 5 Jul 2016, Jeff King wrote:

> +     ALLOC_ARRAY(ret, st_add3(a_len, b_len, 1));
> +     for (i = 0; i < a_len; i++)
> +             ret[i] = a[i];
> +     for (i = 0; i < b_len; i++)
> +             ret[a_len + i] = b[i];
> +     ret[a_len + b_len] = b[b_len]; /* final OPTION_END */

Not really a big deal, but I'd have written "i <= b_len" in the for loop
and avoided the final line. However, your version is clearer.

Ciao,
Dscho
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to