From ce45caaf83cae5990416aa2d6e833f309f7ce5c0 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 4 Jan 2015 21:06:49 +0100 Subject: SWORD25: Fix warning --- engines/sword25/util/lua_persist.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'engines/sword25/util') diff --git a/engines/sword25/util/lua_persist.cpp b/engines/sword25/util/lua_persist.cpp index 6fe88fe9a3..03f305b2c5 100644 --- a/engines/sword25/util/lua_persist.cpp +++ b/engines/sword25/util/lua_persist.cpp @@ -645,8 +645,7 @@ static void persistProto(SerializationInfo *info) { // Serialize inner Proto refs info->writeStream->writeSint32LE(proto->sizep); - for (int i = 0; i < proto->sizep; ++i) - { + for (int i = 0; i < proto->sizep; ++i) { pushProto(info->luaState, proto->p[i]); // >>>>> permTbl indexTbl ...... proto subProto */ @@ -668,8 +667,7 @@ static void persistProto(SerializationInfo *info) { // Serialize upvalue names info->writeStream->writeSint32LE(proto->sizeupvalues); - for (int i = 0; i < proto->sizeupvalues; ++i) - { + for (int i = 0; i < proto->sizeupvalues; ++i) { pushString(info->luaState, proto->upvalues[i]); // >>>>> permTbl indexTbl ...... proto str @@ -710,7 +708,7 @@ static void persistProto(SerializationInfo *info) { info->writeStream->writeSint32LE(proto->sizelineinfo); if (proto->sizelineinfo) { - uint32 len = static_cast(sizeof(int) * proto->sizelineinfo); + len = static_cast(sizeof(int) * proto->sizelineinfo); info->writeStream->write(proto->lineinfo, len); } -- cgit v1.2.3