about summary refs log tree commit diff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/tl/array.h2
-rw-r--r--src/base/vmath.h2
2 files changed, 3 insertions, 1 deletions
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 <math.h>
+
 // ------------------------------------
 
 template<typename T>