pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:3153:    /* NaN */    string_builder_strcat(s, "nan");    break;    }    if (val < 0.0) {    string_builder_putchar(s, '-');    val = -val;    } else if (flags & APPEND_POSITIVE) {    string_builder_putchar(s, '+');    } -  if ((val+val == val) && (val > 0.0)) { +  if (PIKE_ISINF(val)) {    /* Infinity */    string_builder_strcat(s, "inf");    break;    }    /* FIXME: Field lengths and precision. */    if ((bytes = snprintf(NULL, 0, nfmt, val))) {    p_wchar0 *p = string_builder_allocate(s, bytes, 0);    size_t check = snprintf((char*)p, bytes+1, nfmt, val);    if (check != bytes) {    Pike_fatal("string_builder_vsprintf(): snprintf(\"%s\", %f) "