1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Omit the use of memmove() in sqlite3FpDecode() in an attempt to avoid

spurious warnings from valgrind.  Also makes the code slightly smaller and
faster.

FossilOrigin-Name: b409943af00e35ad05906d0a80ffa1225a66f3d807c131e00cfbf6671a03a981
This commit is contained in:
drh
2023-07-07 18:49:08 +00:00
parent afef7fc136
commit 50ba4e3efd
4 changed files with 20 additions and 16 deletions

View File

@@ -4608,7 +4608,8 @@ struct FpDecode {
char isSpecial; /* 1: Infinity 2: NaN */
int n; /* Significant digits in the decode */
int iDP; /* Location of the decimal point */
char z[24]; /* Significiant digits */
char *z; /* Start of significant digits */
char zBuf[24]; /* Storage for significant digits */
};
void sqlite3FpDecode(FpDecode*,double,int,int);