summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-03-05 22:55:47 +0000
committersmatz <smatz@openttd.org>2009-03-05 22:55:47 +0000
commit488b7e6bf64c170cea33f109088df261f198fc99 (patch)
tree269b325da55798b0b8a067c89753336c8108a77b /src/vehicle.cpp
parentbb48bfe1dfe4371dbb582ee91d3a9cc256be2e74 (diff)
downloadopenttd-488b7e6bf64c170cea33f109088df261f198fc99.tar.xz
(svn r15624) -Fix (r15621): warning about comparing signed and unsigned integer types
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 0f0602cb4..46e3de633 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1195,7 +1195,7 @@ static void CloneVehicleName(const Vehicle *src, Vehicle *dst)
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. */