susumu.yata
null+****@clear*****
Fri Jun 19 09:53:37 JST 2015
susumu.yata 2015-06-19 09:53:37 +0900 (Fri, 19 Jun 2015) New Revision: bac2f91e8bffe096e5e1513166a0560c67a9db6a https://github.com/groonga/groonga/commit/bac2f91e8bffe096e5e1513166a0560c67a9db6a Message: egn: use grn_text_lltoa() instead of sprintf(). GitHub: #350 Modified files: lib/egn.cpp Modified: lib/egn.cpp (+2 -4) =================================================================== --- lib/egn.cpp 2015-06-19 09:50:42 +0900 (9ef9209) +++ lib/egn.cpp 2015-06-19 09:53:37 +0900 (e3dbf5d) @@ -3084,10 +3084,8 @@ grn_egn_select_output(grn_ctx *ctx, grn_obj *table, break; } case GRN_DB_INT64: { - char buf[32]; - int len = std::sprintf(buf, "%ld", - ((grn_egn_int *)&bufs[j][0])[i]); - GRN_TEXT_PUT(ctx, ctx->impl->outbuf, buf, len); + grn_text_lltoa(ctx, ctx->impl->outbuf, + ((grn_egn_int *)&bufs[j][0])[i]); break; } case GRN_DB_FLOAT: { -------------- next part -------------- HTML����������������������������...Download