X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/912f4a2888742f69de7611d65b35fd1b04911bf9..f547c930a23c0101f1f80e40e2528b619d995063:/packages/texlive-bin/luatex-poppler-0.64.patch diff --git a/packages/texlive-bin/luatex-poppler-0.64.patch b/packages/texlive-bin/luatex-poppler-0.64.patch new file mode 100644 index 00000000..9741d4f2 --- /dev/null +++ b/packages/texlive-bin/luatex-poppler-0.64.patch @@ -0,0 +1,35 @@ +--- ../pdftoepdf.w 2018-04-30 19:38:03.041290335 +0000 ++++ ./texk/web2c/luatexdir/image/pdftoepdf.w 2018-04-30 20:27:50.631512751 +0000 +@@ -472,10 +472,10 @@ + break; + */ + case objString: +- copyString(pdf, obj->getString()); ++ copyString(pdf, (GooString *)obj->getString()); + break; + case objName: +- copyName(pdf, obj->getName()); ++ copyName(pdf, (char *)obj->getName()); + break; + case objNull: + pdf_add_null(pdf); +--- ../lepdflib.cc 2018-04-30 19:37:10.553331209 +0000 ++++ ./texk/web2c/luatexdir/lua/lepdflib.cc 2018-04-30 20:40:55.079059154 +0000 +@@ -674,7 +674,7 @@ + uin = (udstruct *) luaL_checkudata(L, 1, M_##in); \ + if (uin->pd != NULL && uin->pd->pc != uin->pc) \ + pdfdoc_changed_error(L); \ +- gs = ((in *) uin->d)->function(); \ ++ gs = (GooString *)((in *) uin->d)->function(); \ + if (gs != NULL) \ + lua_pushlstring(L, gs->getCString(), gs->getLength()); \ + else \ +@@ -1813,7 +1813,7 @@ + if (uin->pd != NULL && uin->pd->pc != uin->pc) + pdfdoc_changed_error(L); + if (((Object *) uin->d)->isString()) { +- gs = ((Object *) uin->d)->getString(); ++ gs = (GooString *)((Object *) uin->d)->getString(); + lua_pushlstring(L, gs->getCString(), gs->getLength()); + } else + lua_pushnil(L);