make pedantic and c99 happy (maybe send upstream) (nw)

This commit is contained in:
Cowering 2015-06-22 12:38:45 -05:00
parent 859c36f8b1
commit 262d8b43f8

View File

@ -264,7 +264,7 @@ static int dbvm_tostring(lua_State *L) {
if (svm->vm == NULL) if (svm->vm == NULL)
strcpy(buff, "closed"); strcpy(buff, "closed");
else else
sprintf(buff, "%p", svm); sprintf(buff, "%p", (void *)svm);
lua_pushfstring(L, "sqlite virtual machine (%s)", buff); lua_pushfstring(L, "sqlite virtual machine (%s)", buff);
return 1; return 1;
} }
@ -747,7 +747,7 @@ static int lcontext_tostring(lua_State *L) {
if (ctx->ctx == NULL) if (ctx->ctx == NULL)
strcpy(buff, "closed"); strcpy(buff, "closed");
else else
sprintf(buff, "%p", ctx->ctx); sprintf(buff, "%p", (void *) ctx->ctx);
lua_pushfstring(L, "sqlite function context (%s)", buff); lua_pushfstring(L, "sqlite function context (%s)", buff);
return 1; return 1;
} }