diff options
author | 2015-06-22 12:38:45 -0500 | |
---|---|---|
committer | 2015-07-08 14:00:07 -0500 | |
commit | 262d8b43f8b7b65e2bfcd49a0780f9f23ae13b61 (patch) | |
tree | f149684c1b291cce561a632011b6bcbc8b2be475 | |
parent | 859c36f8b14a47e9a30ab36adcd303e0e5184869 (diff) |
make pedantic and c99 happy (maybe send upstream) (nw)
-rw-r--r-- | 3rdparty/lsqlite3/lsqlite3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/lsqlite3/lsqlite3.c b/3rdparty/lsqlite3/lsqlite3.c index 1026af451c9..072d33b59eb 100644 --- a/3rdparty/lsqlite3/lsqlite3.c +++ b/3rdparty/lsqlite3/lsqlite3.c @@ -264,7 +264,7 @@ static int dbvm_tostring(lua_State *L) { if (svm->vm == NULL) strcpy(buff, "closed"); else - sprintf(buff, "%p", svm); + sprintf(buff, "%p", (void *)svm); lua_pushfstring(L, "sqlite virtual machine (%s)", buff); return 1; } @@ -747,7 +747,7 @@ static int lcontext_tostring(lua_State *L) { if (ctx->ctx == NULL) strcpy(buff, "closed"); else - sprintf(buff, "%p", ctx->ctx); + sprintf(buff, "%p", (void *) ctx->ctx); lua_pushfstring(L, "sqlite function context (%s)", buff); return 1; } |