From: Vincent Pit Date: Sat, 23 Apr 2011 14:27:58 +0000 (+0200) Subject: Rename j1 to prevent a name clash with the Bessel function X-Git-Tag: v0.07~18 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=0b682e5240292b703752516ae09ca0d859f74da9;p=perl%2Fmodules%2FScalar-Vec-Util.git Rename j1 to prevent a name clash with the Bessel function --- diff --git a/Util.xs b/Util.xs index 72b2830..6733972 100644 --- a/Util.xs +++ b/Util.xs @@ -36,7 +36,7 @@ STATIC size_t svu_validate_uv(pTHX_ SV *sv, const char *desc) { STATIC char *svu_prepare_sv(pTHX_ SV *sv, size_t s, size_t l) { #define svu_prepare_sv(S, I, L) svu_prepare_sv(aTHX_ (S), (I), (L)) STRLEN c; - size_t n = s + l, i, j1, j2, k, z; + size_t n = s + l, i, js, jz, k, z; char *p; SvUPGRADE(sv, SVt_PV); @@ -44,15 +44,15 @@ STATIC char *svu_prepare_sv(pTHX_ SV *sv, size_t s, size_t l) { p = SvGROW(sv, BV_SIZE(n)); c = SvCUR(sv); - j1 = (s / BITS(BV_UNIT)) * sizeof(BV_UNIT); - k = j1 + sizeof(BV_UNIT); - for (i = c < j1 ? j1 : c; i < k; ++i) + js = (s / BITS(BV_UNIT)) * sizeof(BV_UNIT); + k = js + sizeof(BV_UNIT); + for (i = c < js ? js : c; i < k; ++i) p[i] = 0; - j2 = ((s + l - 1) / BITS(BV_UNIT)) * sizeof(BV_UNIT); - if (j2 > j1) { - k = j2 + sizeof(BV_UNIT); - for (i = c < j2 ? j2 : c; i < k; ++i) + jz = ((s + l - 1) / BITS(BV_UNIT)) * sizeof(BV_UNIT); + if (jz > js) { + k = jz + sizeof(BV_UNIT); + for (i = c < jz ? jz : c; i < k; ++i) p[i] = 0; }