diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-27 07:30:46 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-27 07:30:46 +0000 |
commit | 2d51b17da005a18a51626ab9d28011be51b97ab7 (patch) | |
tree | 3ee7fcc14a6a7c603983c480e877994210ae17d4 /Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc | |
parent | f015f872b280d6456f89fc5a1bebf90250eaf338 (diff) |
luaTeX: Drop useless casts to avoid some g++ warnings (if enabled)
git-svn-id: svn://tug.org/texlive/trunk@38217 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.cc | 4 |
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 d7782c2fe54..7fa6c4438c7 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc +++ b/Build/source/texk/web2c/luatexdir/lua/lpdfscannerlib.cc @@ -73,7 +73,7 @@ typedef enum { typedef struct Token { pdf_token_type type; double value; - const char *string; + char *string; } Token; typedef struct ObjectList { @@ -165,7 +165,7 @@ static scannerdata *scanner_check (lua_State *L, int index) static void free_token (Token *token) { if (token->string) { - free((void *)token->string); + free(token->string); } free(token); } |