pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:2957:    for(delta = 1; (base>>delta) > 1; delta++)    ;       mask = (1<<delta)-1; /* Usually base-1. */       /* Precision is minimum number of digits. */    if (precision) shift = (len = precision) * delta;    else shift = delta;       /* Calculate actual number of digits and initial shift. */ -  for (; tmp >> shift && shift < SIZEOF_LONGEST * 8; shift += delta, len++) +  for (; shift < SIZEOF_LONGEST * 8 && tmp >> shift; shift += delta, len++)    ;       if ((len < min_width) && !(flags & APPEND_LEFT)) {    /* Perform padding.    * Note that APPEND_ZERO_PAD can not be active here, since    * len is at least min_width in that case.    */    string_builder_fill(s, min_width - len, MKPCHARP(" ", 0),    4, 0);    min_width = 0;