[Scummvm-cvs-logs] scummvm master -> 273304d9ad28c2b8d2396f26f787976ebda0ae6a

Strangerke Strangerke at scummvm.org
Tue Jan 12 12:17:09 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
273304d9ad VOYEUR: change the type of the variable in a for loop


Commit: 273304d9ad28c2b8d2396f26f787976ebda0ae6a
    https://github.com/scummvm/scummvm/commit/273304d9ad28c2b8d2396f26f787976ebda0ae6a
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-01-12T12:10:19+01:00

Commit Message:
VOYEUR: change the type of the variable in a for loop

Changed paths:
    engines/voyeur/files_threads.cpp



diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp
index 1de03c3..9908324 100644
--- a/engines/voyeur/files_threads.cpp
+++ b/engines/voyeur/files_threads.cpp
@@ -1390,7 +1390,7 @@ int ThreadResource::doInterface() {
 				Common::Point(pt.x - MANSION_VIEW_X, pt.y - MANSION_VIEW_Y);
 		regionIndex = -1;
 
-		for (int hotspotIdx = 0; hotspotIdx < (int)hotspots->size(); ++hotspotIdx) {
+		for (uint hotspotIdx = 0; hotspotIdx < hotspots->size(); ++hotspotIdx) {
 			if ((*hotspots)[hotspotIdx].contains(pt)) {
 				// Rect check done
 				for (int arrIndex = 0; arrIndex < 3; ++arrIndex) {






More information about the Scummvm-git-logs mailing list