From d08068dff1ea02314d791c1248d72091d4d5d9e9 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 4 Apr 2005 07:25:21 +0000 Subject: Fixed warnings on little-endian systems. svn-id: r17371 --- scumm/resource_v4.cpp | 3 +-- scumm/resource_v7he.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'scumm') diff --git a/scumm/resource_v4.cpp b/scumm/resource_v4.cpp index 6392f3bf50..6eb65f7882 100644 --- a/scumm/resource_v4.cpp +++ b/scumm/resource_v4.cpp @@ -204,7 +204,6 @@ void ScummEngine_v8::readGlobalObjects() { } void ScummEngine_v7::readGlobalObjects() { - int i; int num = _fileHandle->readUint16LE(); assert(num == _numGlobalObjects); @@ -216,7 +215,7 @@ void ScummEngine_v7::readGlobalObjects() { #if defined(SCUMM_BIG_ENDIAN) // Correct the endianess if necessary - for (i = 0; i != num; i++) + for (int i = 0; i != num; i++) _classData[i] = FROM_LE_32(_classData[i]); #endif } diff --git a/scumm/resource_v7he.cpp b/scumm/resource_v7he.cpp index 976c741342..904984f5df 100644 --- a/scumm/resource_v7he.cpp +++ b/scumm/resource_v7he.cpp @@ -1641,7 +1641,6 @@ void ScummEngine_v70he::readRoomsOffsets() { } void ScummEngine_v70he::readGlobalObjects() { - int i; int num = _fileHandle->readUint16LE(); assert(num == _numGlobalObjects); @@ -1653,7 +1652,7 @@ void ScummEngine_v70he::readGlobalObjects() { #if defined(SCUMM_BIG_ENDIAN) // Correct the endianess if necessary - for (i = 0; i != num; i++) + for (int i = 0; i != num; i++) _classData[i] = FROM_LE_32(_classData[i]); #endif } -- cgit v1.2.3