Branch: Tag:

2014-10-12

2014-10-12 17:53:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.Buffer: Fixed return type for sprintf().

1818:    *! This is somewhat faster than add(sprintf(...)) since no    *! intermediate string is created.    */ -  PIKEFUN int(0..) sprintf(mixed ... ignored) +  PIKEFUN Buffer sprintf(mixed ... ignored)    rawtype tFuncV(tAttr("strict_sprintf_format", tOr(tStr, tObj)), -  tAttr("sprintf_args", tMix), tStr); +  tAttr("sprintf_args", tMix), tObjIs_BUFFER);    {    ONERROR _e;    struct string_builder tmp;