From 066e5987c515dfc34537d73ca9d2a81ddd1f9e1b Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 21 Oct 2018 13:37:27 +0800 Subject: =?UTF-8?q?*=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lua/main.cpp') diff --git a/src/lua/main.cpp b/src/lua/main.cpp index a17ed1c..495ca6f 100644 --- a/src/lua/main.cpp +++ b/src/lua/main.cpp @@ -28,16 +28,17 @@ int main(int argc, char* argv[]) /* absolute directory */ Buffer cwd = Buffer(1024); #ifdef _WIN32 - _getcwd((char*)cwd.data, cwd.size); + _getcwd((char*)&cwd, cwd.size()); #elif defined __unix__ #elif defined __APPLE__ #endif - luax_setfieldstring(L, "cwd", (char*)cwd.data); + luax_setfieldstring(L, "cwd", (char*)&cwd); luax_clear(L); /* boot jin and run it */ boot(L); luax_close(L); + return 0; } \ No newline at end of file -- cgit v1.1-26-g67d0