fixes for amigaos compiler

This commit is contained in:
Pawel Kolodziejski 2008-07-26 17:56:00 +00:00
parent f4da6bb33f
commit 6f394e7f7d
2 changed files with 3 additions and 2 deletions

View file

@ -270,7 +270,7 @@ static void FunctionName() {
const char *name;
char buf[256];
const char *filename;
int line;
int32 line;
DEBUG_FUNCTION();
if (!lua_isfunction(lua_getparam(1))) {
@ -294,7 +294,7 @@ static void FunctionName() {
else if (line < 0)
sprintf(buf, "%.100s", filename);
else {
sprintf(buf, "function (%.100s:%d)", filename, line);
sprintf(buf, "function (%.100s:%d)", filename, (int)line);
filename = NULL;
}
}