Uh oh!
There was an error while loading. Please reload this page.
src: enhance C++ sprintf utility - #32385
Conversation
43287bc to
658075eCompareddba87b to
f363ae5CompareThere was a problem hiding this comment.
I don’t think you need to do any templating for T, any value that’s passed to a function like this will be convertible to unsigned long long anyway.
There was a problem hiding this comment.
Of course ok, but we had code more template for other types if we do this.
btw, I inspired from this https://github.com/fmtlib/fmt/blob/5d32ccfc3130fdd122c344b37087ac7fd8c2b62e/include/fmt/format.h#L901-L913
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
addaleax
left a comment
There was a problem hiding this comment.
Looks good, although it’s probably much simpler to go the %p route and just let the system snprintf do the work.
Uh oh!
There was an error while loading. Please reload this page.
himself65
commented
Mar 21, 2020
Travis-ci fail because of timeout https://travis-ci.com/github/nodejs/node/jobs/300545913#L3154-L3159 |
gabrielschulhof
commented
Mar 21, 2020
@himself65 I restarted the Travis job. |
nodejs-github-bot
commented
Mar 25, 2020
nodejs-github-bot
commented
Mar 25, 2020
PR-URL: #32385 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
gabrielschulhof
commented
Mar 26, 2020
Landed in dade90d. |
PR-URL: #32385 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #32385 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
fix#32370
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes