summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-09 18:53:05 +0000
committerKarl Berry <karl@freefriends.org>2018-01-09 18:53:05 +0000
commit9b0195121df2c53bdd030fdec6d7871f27f057f0 (patch)
treef58fc29c2856f942f64b30d91a1fc9247e1d5b10 /Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc
parent332064c92a01296b5dd2d25524d0f8286ccdd107 (diff)
poppler 0.62.0, requiring C++11; luatex not updated yet
git-svn-id: svn://tug.org/texlive/trunk@46257 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc b/Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc
index 9ad50c99aeb..8bdbcf16535 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc
+++ b/Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc
@@ -634,7 +634,7 @@ static int scanner_scan(lua_State * L)
int i;
for (i=0;i<count;i++) {
Object *val = new Object();
- arrayref->get(i, val);
+ *val = arrayref->get(i);
if (val->isStream()) {
ObjectList *rover = self->_streams;
ObjectList *item = (ObjectList *)priv_xmalloc (sizeof(ObjectList));
@@ -944,7 +944,7 @@ LUALIB_API int luaopen_pdfscanner(lua_State * L)
luaL_openlib(L, 0, scannerlib_meta, 0);
lua_pushvalue(L, -1);
lua_setfield(L, -2, "__index");
- luaL_register(L, NULL, scannerlib_m);
+ luaL_openlib(L, NULL, scannerlib_m, 0);
luaL_register(L, "pdfscanner", scannerlib);
return 1;
}