aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-07-14 12:38:20 +0000
committerdrh <drh@noemail.net>2008-07-14 12:38:20 +0000
commit7986a71a19975306ddfcf18627d18d89cad9365a (patch)
tree8067047d7b9391788300afab0fcd3c56e33eda47 /src/malloc.c
parentc376a19890768f63842f4853f5c84bf9c9328b7e (diff)
downloadsqlite-7986a71a19975306ddfcf18627d18d89cad9365a.tar.gz
sqlite-7986a71a19975306ddfcf18627d18d89cad9365a.zip
Fix a bug introduced by check-in (5406). Ticket #3216. (CVS 5407)
FossilOrigin-Name: 518a24aa3e042782fbf2e805cf080b61e58a8150
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/malloc.c b/src/malloc.c
index ed2bbb383..317061c1f 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -12,7 +12,7 @@
**
** Memory allocation functions used throughout sqlite.
**
-** $Id: malloc.c,v 1.27 2008/07/14 12:30:54 drh Exp $
+** $Id: malloc.c,v 1.28 2008/07/14 12:38:21 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -165,7 +165,7 @@ 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)n; /* Work around bug in Borland C. Ticket #3216 */
+ res = (sqlite3_int64)mx; /* Work around bug in Borland C. Ticket #3216 */
return res;
}