Index: trunk/src/lua/lua_math.cc
===================================================================
--- trunk/src/lua/lua_math.cc	(revision 454)
+++ trunk/src/lua/lua_math.cc	(revision 471)
@@ -214,9 +214,9 @@
 {
 	T v = to_vec<T>( L, 1 );
-	for ( int i = 0; i < v.length(); ++i )
+	for ( size_t i = 0; i < v.size(); ++i )
 	{
 		lua_pushnumber( L, v[i] );
 	}
-	return v.length();
+	return v.size();
 }
 
@@ -226,7 +226,7 @@
 	T* v = to_pvec<T>( L, 1 );
 	size_t len  = 0;
-	int vlen = v->length();
+	size_t vlen = v->size();
 	const unsigned char * key = reinterpret_cast<const unsigned char *>( lua_tolstring( L, 2, &len ) );
-	int idx = 255;
+	size_t idx = 255;
 
 	if ( len == 1 )
@@ -264,7 +264,7 @@
 	T* v = to_pvec<T>( L, 1 );
 	size_t len  = 0;
-	int vlen = v->length();
+	size_t vlen = v->size();
 	const unsigned char * key = reinterpret_cast<const unsigned char *>( lua_tolstring( L, 2, &len ) );
-	int idx = 255;
+	size_t idx = 255;
 	if( len == 1 )
 	{
@@ -293,5 +293,5 @@
 	T v = to_vec<T>( L, 1 );
 	bool fl = nv::is_floating_point<typename T::value_type>::value;
-	switch ( v.length() )
+	switch ( v.size() )
 	{
 	case 1: lua_pushfstring( L, ( fl ? "(%f)"          : "(%d)" ),          v[0] ); break;
