summaryrefslogtreecommitdiff
path: root/src/oldpool_func.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-07-18 21:01:30 +0000
committersmatz <smatz@openttd.org>2008-07-18 21:01:30 +0000
commitf2da04573105942c4c6dc6e64e65281acb596850 (patch)
treeb97d506f8fe3aae860d6eefe2edef4ac203579de /src/oldpool_func.h
parent5f280d0e505098c237d79647ce75639eb2b87fb2 (diff)
downloadopenttd-f2da04573105942c4c6dc6e64e65281acb596850.tar.xz
(svn r13733) -Fix (r13731): gcc2.95 compilation
Diffstat (limited to 'src/oldpool_func.h')
-rw-r--r--src/oldpool_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oldpool_func.h b/src/oldpool_func.h
index 4397d8443..8a26adc22 100644
--- a/src/oldpool_func.h
+++ b/src/oldpool_func.h
@@ -17,7 +17,7 @@ template<typename T, typename Tid, OldMemoryPool<T> *Tpool> T *PoolItem<T, Tid,
{
uint last_minus_one = Tpool->GetSize() - 1;
- for (T *t = Tpool->Get(first); t != NULL; t = (t->index < last_minus_one) ? Tpool->Get(t->index + 1U) : NULL) {
+ for (T *t = Tpool->Get(first); t != NULL; t = ((uint)t->index < last_minus_one) ? Tpool->Get(t->index + 1U) : NULL) {
if (!t->IsValid()) {
first = t->index;
Tid index = t->index;
@@ -44,7 +44,7 @@ template<typename T, typename Tid, OldMemoryPool<T> *Tpool> bool PoolItem<T, Tid
{
uint last_minus_one = Tpool->GetSize() - 1;
- for (T *t = Tpool->Get(Tpool->first_free_index); t != NULL; t = (t->index < last_minus_one) ? Tpool->Get(t->index + 1U) : NULL) {
+ for (T *t = Tpool->Get(Tpool->first_free_index); t != NULL; t = ((uint)t->index < last_minus_one) ? Tpool->Get(t->index + 1U) : NULL) {
if (!t->IsValid()) return true;
Tpool->first_free_index = t->index;
}