changeset 11275:4358bc6ba01d draft

(svn r15624) -Fix (r15621): warning about comparing signed and unsigned integer types
author smatz <smatz@openttd.org>
date Thu, 05 Mar 2009 22:55:47 +0000
parents e9f928943b3f
children 687950e794be
files src/vehicle.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1195,7 +1195,7 @@
 	char buf[256];
 
 	/* Find the position of the first digit in the last group of digits. */
-	int number_position;
+	size_t number_position;
 	for (number_position = strlen(src->name); number_position > 0; number_position--) {
 		/* The design of UTF-8 lets this work simply without having to check
 		 * for UTF-8 sequences. */