From 575f72d978c700e4bedb46f4083bf1c24726640e Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 5 Jul 2010 20:57:07 +0200 Subject: fixed some compiler errors and warnings with clang --- src/base/tl/array.h | 2 +- src/base/vmath.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/base') diff --git a/src/base/tl/array.h b/src/base/tl/array.h index 580f4682..14c83295 100644 --- a/src/base/tl/array.h +++ b/src/base/tl/array.h @@ -283,7 +283,7 @@ public: */ int memusage() { - return sizeof(array) + sizeof(T)*size; + return sizeof(array) + sizeof(T)*list_size; } /* diff --git a/src/base/vmath.h b/src/base/vmath.h index 49dd26d1..2be3e6eb 100644 --- a/src/base/vmath.h +++ b/src/base/vmath.h @@ -2,6 +2,8 @@ #ifndef BASE_VMATH_H #define BASE_VMATH_H +#include + // ------------------------------------ template -- cgit 1.4.1