Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Publishing:TeXLive:2018
texlive
source-lua-fix-bad-compare.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File source-lua-fix-bad-compare.patch of Package texlive
From bcac61bbec874191c5efa748be5246e0a6835d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Sat, 22 Dec 2018 03:37:33 +0100 Subject: [PATCH] Fix tautological (always false) compare The current code compares the PDF document change counter with itself, which is always false. Compare change counter of the wrapped document with the counter of the wrapper instead. --- luatexdir/lua/lepdflib.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/texk/web2c/luatexdir/lua/lepdflib.cc b/texk/web2c/luatexdir/lua/lepdflib.cc index 795550e..63fcc11 100644 --- a/texk/web2c/luatexdir/lua/lepdflib.cc +++ b/texk/web2c/luatexdir/lua/lepdflib.cc @@ -1966,7 +1966,7 @@ static int m_Object_arrayAdd(lua_State * L) if (uin->pd != NULL && uobj->pd != NULL && uin->pd != uobj->pd) pdfdoc_differs_error(L); if ((uin->pd != NULL && uin->pd->pc != uin->pc) - || (uobj->pd != NULL && uobj->pd->pc != uobj->pd->pc)) + || (uobj->pd != NULL && uobj->pd->pc != uobj->pc)) pdfdoc_changed_error(L); if (!((Object *) uin->d)->isArray()) luaL_error(L, "Object is not an Array"); @@ -2047,7 +2047,7 @@ static int m_Object_dictAdd(lua_State * L) if (uin->pd != NULL && uobj->pd != NULL && uin->pd != uobj->pd) pdfdoc_differs_error(L); if ((uin->pd != NULL && uin->pd->pc != uin->pc) - || (uobj->pd != NULL && uobj->pd->pc != uobj->pd->pc)) + || (uobj->pd != NULL && uobj->pd->pc != uobj->pc)) pdfdoc_changed_error(L); if (!((Object *) uin->d)->isDict()) luaL_error(L, "Object is not a Dict"); @@ -2065,7 +2065,7 @@ static int m_Object_dictSet(lua_State * L) if (uin->pd != NULL && uobj->pd != NULL && uin->pd != uobj->pd) pdfdoc_differs_error(L); if ((uin->pd != NULL && uin->pd->pc != uin->pc) - || (uobj->pd != NULL && uobj->pd->pc != uobj->pd->pc)) + || (uobj->pd != NULL && uobj->pd->pc != uobj->pc)) pdfdoc_changed_error(L); if (!((Object *) uin->d)->isDict()) luaL_error(L, "Object is not a Dict"); -- 2.19.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor