Changeset: 27c678ad6f60 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/27c678ad6f60 Modified Files: sql/backends/monet5/sql_result.c Branch: default Log Message:
tmp buffer was moved to outer scope, move comment with it diffs (16 lines): diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c --- a/sql/backends/monet5/sql_result.c +++ b/sql/backends/monet5/sql_result.c @@ -458,10 +458,10 @@ fltdbl_frStr(Column *c, int type, const // +00000000000000000000000000000000000000000000000000000000000000000000001.5e1 // will be rejected. + // According to Stack Overflow https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value + // 24 bytes is a reasonable buffer but we'll make it a bit larger. char tmp[120]; if (c->decskip || c->decsep != '.') { - // According to Stack Overflow https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value - // 24 bytes is a reasonable buffer but we'll make it a bit larger. char *p = &tmp[0]; while (GDKisspace(*s)) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org