diff options
-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; } |