Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
The explicit number of dash elements is redundant.
Browse files Browse the repository at this point in the history
  • Loading branch information
doub committed Jan 9, 2016
1 parent dba6536 commit 54624bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2885,9 +2885,9 @@ static int LclPage_SetDash(lua_State *L)
}
else {
luaL_argcheck(L, lua_istable(L, 2), 2, "expecting dash mode table");
mode.num_ptn = luaL_checkinteger(L, 3);
mode.num_ptn = lua_rawlen(L, 2);
if (mode.num_ptn <= 8) {
mode.phase = luaL_checkinteger(L, 4);
mode.phase = luaL_checkinteger(L, 3);
for (J = 0; J < mode.num_ptn; J++) {
int Dash;
/* Stk: ... */
Expand Down

0 comments on commit 54624bd

Please sign in to comment.