summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-01-16 08:50:19 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-01-16 08:50:19 +0000
commitdcf8d6da92c7b0873c50317ea74ddebbe54f5055 (patch)
tree12a6f64c03d8d099618e39bad375706dd627c6e0 /plugins/MirLua/src
parentb97c40a7095474115cdeac7a93183353b203886b (diff)
vs2010 compilation fix(?)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16097 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r--plugins/MirLua/src/mlua_metatable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h
index e0c2f1adb3..3ad1ebb5cf 100644
--- a/plugins/MirLua/src/mlua_metatable.h
+++ b/plugins/MirLua/src/mlua_metatable.h
@@ -30,7 +30,7 @@ struct MTField : public MZeroedObject
MTField(std::function<void*(T*)> f, int type)
: lambda(f), type(type), getType(MTFGT_LAMBDA) { }
- template<typename R = void*>
+ template<typename R>
R GetValue(T *obj) const
{
if (getType == MTFGT_LAMBDA) return (R)lambda(obj);
@@ -115,7 +115,7 @@ private:
lua_pushstring(L, ptrA(mir_utf8encodeW(field->GetValue<wchar_t*>(obj))));
break;
case LUA_TLIGHTUSERDATA:
- lua_pushlightuserdata(L, field->GetValue(obj));
+ lua_pushlightuserdata(L, field->GetValue<void*>(obj));
break;
default:
lua_pushnil(L);