about summary refs log tree commit diff
path: root/src/base/tl
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2012-08-17 00:03:53 +0200
committeroy <Tom_Adams@web.de>2013-02-24 17:54:29 +0100
commit98042012a6c6e639c9736b32518dd082ca539615 (patch)
tree069cdf4a2149dde7c5efcce1df56942f89bc3365 /src/base/tl
parent6af382ade1d350091545dd24ab79020bda7825f2 (diff)
downloadzcatch-98042012a6c6e639c9736b32518dd082ca539615.tar.gz
zcatch-98042012a6c6e639c9736b32518dd082ca539615.zip
cleaned up warnings that clang spits out. some bugs found with it.
Conflicts:

	src/game/server/gamemodes/ctf.cpp
	src/game/server/gamemodes/ctf.h
Diffstat (limited to 'src/base/tl')
-rw-r--r--src/base/tl/range.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/tl/range.h b/src/base/tl/range.h
index f1fc070b..1d225f49 100644
--- a/src/base/tl/range.h
+++ b/src/base/tl/range.h
@@ -154,7 +154,7 @@ public:
 	void pop_back() { tl_assert(!empty()); end--; }
 	T& front() { tl_assert(!empty()); return *begin; }
 	T& back() { tl_assert(!empty()); return *(end-1); }
-	T& index(unsigned i) { tl_assert(i >= 0 && i < (unsigned)(end-begin)); return begin[i]; }
+	T& index(unsigned i) { tl_assert(i < (unsigned)(end-begin)); return begin[i]; }
 	unsigned size() const { return (unsigned)(end-begin); }
 	plain_range slice(unsigned startindex, unsigned endindex)
 	{