diff options
-rw-r--r-- | src/LuaLoad.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LuaLoad.cc b/src/LuaLoad.cc index 79453ea..8e634b5 100644 --- a/src/LuaLoad.cc +++ b/src/LuaLoad.cc @@ -1,5 +1,6 @@ #include <memory> +#include "LuaHandle.h" #include "LuaLoad.h" #include "LuaTask.h" #include "Buffer.h" @@ -9,7 +10,7 @@ using namespace Balau; namespace { -class LuaLoad { }; +struct LuaLoad { void cleanup() { } }; enum LuaLoad_functions_t { LUALOAD @@ -29,7 +30,7 @@ struct sLua_LuaLoad { WAITTASK, } status; if (L.isobject()) { - h = L.recast<Handle>(); + h = L.recast<LuaIO>()->getIO(); if (h.isA<Buffer>()) { L.load(h); return 0; |