mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
fixes warnings
This commit is contained in:
@@ -151,7 +151,7 @@ AmigaOSFilesystemNode::AmigaOSFilesystemNode() {
|
||||
AmigaOSFilesystemNode::AmigaOSFilesystemNode(const String &p) {
|
||||
ENTER();
|
||||
|
||||
int len = 0, offset = p.size();
|
||||
int offset = p.size();
|
||||
|
||||
//assert(offset > 0);
|
||||
|
||||
|
||||
@@ -370,7 +370,7 @@ void Imuse::switchToNextRegion(Track *track) {
|
||||
}
|
||||
|
||||
if (debugLevel == DEBUG_IMUSE || debugLevel == DEBUG_ALL)
|
||||
printf("Imuse::switchToNextRegion(): REGION %d: soundName:%s\n", track->curRegion, track->soundName);
|
||||
printf("Imuse::switchToNextRegion(): REGION %d: soundName:%s\n", (int)track->curRegion, track->soundName);
|
||||
track->dataOffset = _sound->getRegionOffset(soundDesc, track->curRegion);
|
||||
track->regionOffset = 0;
|
||||
}
|
||||
|
||||
@@ -361,12 +361,12 @@ static void lua_printstack (FILE *f)
|
||||
else if (linedefined < 0)
|
||||
fprintf(f, "%s", filename);
|
||||
else
|
||||
fprintf(f, "function (%s:%d)", filename, linedefined);
|
||||
fprintf(f, "function (%s:%d)", filename, (int)linedefined);
|
||||
filename = NULL;
|
||||
}
|
||||
}
|
||||
if ((currentline = lua_currentline(func)) > 0)
|
||||
fprintf(f, " at line %d", currentline);
|
||||
fprintf(f, " at line %d", (int)currentline);
|
||||
if (filename)
|
||||
fprintf(f, " [in file %s]", filename);
|
||||
fprintf(f, "\n");
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ void luaX_token2str (LexState * /*ls*/, int32 token, char *s) {
|
||||
|
||||
static void luaX_invalidchar (LexState *ls, int32 c) {
|
||||
char buff[10];
|
||||
sprintf(buff, "0x%X", c);
|
||||
sprintf(buff, "0x%X", (int)c);
|
||||
luaX_syntaxerror(ls, "invalid control char", buff);
|
||||
}
|
||||
|
||||
|
||||
@@ -592,7 +592,7 @@ static void error_unmatched (LexState *ls, int32 what, int32 who, int32 where) {
|
||||
luaX_token2str(ls, what, t_what);
|
||||
luaX_token2str(ls, who, t_who);
|
||||
sprintf(buff, "`%s' expected (to close `%s' at line %d)",
|
||||
t_what, t_who, where);
|
||||
t_what, t_who, (int)where);
|
||||
luaX_error(ls, buff);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ int32 luaV_tostring (TObject *obj)
|
||||
real f = nvalue(obj);
|
||||
int32 i;
|
||||
if ((real)(-MAX_INT) <= f && f <= (real)MAX_INT && (real)(i=(int32)f) == f)
|
||||
sprintf (s, "%d", i);
|
||||
sprintf (s, "%d", (int)i);
|
||||
else
|
||||
sprintf (s, NUMBER_FMT, nvalue(obj));
|
||||
tsvalue(obj) = luaS_new(s);
|
||||
|
||||
@@ -302,7 +302,7 @@ bool Smush::setupAnim(const char *file, int x, int y) {
|
||||
// does not quite do it.
|
||||
// TODO: Find out what needs to go on here.
|
||||
if (SMUSH_ALTSPEED(flags)) {
|
||||
printf("Bad time: %d, suggested: %d\n", _speed, 2 * _speed);
|
||||
printf("Bad time: %d, suggested: %d\n", (int)_speed, (int)(2 * _speed));
|
||||
_speed = 66667;
|
||||
}
|
||||
_videoLooping = SMUSH_LOOPMOVIE(flags);
|
||||
|
||||
Reference in New Issue
Block a user