From 65e5267ffdcc91b6859deac5ffb71e3d98c4d339 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 17 May 2010 10:41:03 +0200 Subject: [PATCH] Changed: #825 Remove all warning when compiling Ryzom on Linux --- code/ryzom/server/src/ai_service/child_container.h | 2 +- code/ryzom/server/src/ai_share/world_map.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/server/src/ai_service/child_container.h b/code/ryzom/server/src/ai_service/child_container.h index 8f0de6c7a..54835d912 100644 --- a/code/ryzom/server/src/ai_service/child_container.h +++ b/code/ryzom/server/src/ai_service/child_container.h @@ -492,7 +492,7 @@ uint32 CAliasCont::getChildIndexByAlias(uint32 alias) const { TChld* child = this->_Childs[i]; if (child!=NULL && child->getAlias()==alias) - return i; + return (uint32)i; } return ~0; } diff --git a/code/ryzom/server/src/ai_share/world_map.h b/code/ryzom/server/src/ai_share/world_map.h index 71ed63509..012c22f2b 100644 --- a/code/ryzom/server/src/ai_share/world_map.h +++ b/code/ryzom/server/src/ai_share/world_map.h @@ -2943,7 +2943,7 @@ void CHeap::push(T key, V const& value) { _Heap.push_back(THeapNode(key, value)); - backwardLeveling(_Heap.size()-1); + backwardLeveling((uint)_Heap.size()-1); } template