diff options
author | drh <drh@noemail.net> | 2015-05-14 15:17:20 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-05-14 15:17:20 +0000 |
commit | 5f9a57fc49873318e74ed68a642b199a5da7d6cf (patch) | |
tree | 8cc0764f6873a9a037623d478ed8bd83e82dab74 /src/malloc.c | |
parent | 060c3ffc71dd9fa09e02e0aca2c47d981affd57c (diff) | |
parent | b27dd7c091d2b5eab95dfd03b17b9e0dd60ea45c (diff) | |
download | sqlite-5f9a57fc49873318e74ed68a642b199a5da7d6cf.tar.gz sqlite-5f9a57fc49873318e74ed68a642b199a5da7d6cf.zip |
Merge in the IS-operator enhancements and other recent changes from trunk.
FossilOrigin-Name: 4f9229445c293b39c80b2a662901f608c85b36ef
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/malloc.c b/src/malloc.c index f06e27d84..70b834579 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -226,10 +226,8 @@ void sqlite3MallocEnd(void){ ** Return the amount of memory currently checked out. */ sqlite3_int64 sqlite3_memory_used(void){ - int n, mx; - sqlite3_int64 res; - sqlite3_status(SQLITE_STATUS_MEMORY_USED, &n, &mx, 0); - res = (sqlite3_int64)n; /* Work around bug in Borland C. Ticket #3216 */ + sqlite3_int64 res, mx; + sqlite3_status64(SQLITE_STATUS_MEMORY_USED, &res, &mx, 0); return res; } @@ -239,11 +237,9 @@ sqlite3_int64 sqlite3_memory_used(void){ ** or since the most recent reset. */ sqlite3_int64 sqlite3_memory_highwater(int resetFlag){ - int n, mx; - sqlite3_int64 res; - sqlite3_status(SQLITE_STATUS_MEMORY_USED, &n, &mx, resetFlag); - res = (sqlite3_int64)mx; /* Work around bug in Borland C. Ticket #3216 */ - return res; + sqlite3_int64 res, mx; + sqlite3_status64(SQLITE_STATUS_MEMORY_USED, &res, &mx, resetFlag); + return mx; } /* |