mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
make pedantic and c99 happy (maybe send upstream) (nw)
This commit is contained in:
parent
859c36f8b1
commit
262d8b43f8
4
3rdparty/lsqlite3/lsqlite3.c
vendored
4
3rdparty/lsqlite3/lsqlite3.c
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user