diff options
| author | Torbjörn Andersson | 2005-04-04 07:25:21 +0000 | 
|---|---|---|
| committer | Torbjörn Andersson | 2005-04-04 07:25:21 +0000 | 
| commit | d08068dff1ea02314d791c1248d72091d4d5d9e9 (patch) | |
| tree | 37ef67f2cc396789235baa5b8d2b2c1617fa0609 | |
| parent | c7ddbf7cad4b106d71499bdf925782ca69375bc9 (diff) | |
| download | scummvm-rg350-d08068dff1ea02314d791c1248d72091d4d5d9e9.tar.gz scummvm-rg350-d08068dff1ea02314d791c1248d72091d4d5d9e9.tar.bz2 scummvm-rg350-d08068dff1ea02314d791c1248d72091d4d5d9e9.zip | |
Fixed warnings on little-endian systems.
svn-id: r17371
| -rw-r--r-- | scumm/resource_v4.cpp | 3 | ||||
| -rw-r--r-- | scumm/resource_v7he.cpp | 3 | 
2 files changed, 2 insertions, 4 deletions
| 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  } | 
