summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-09-18 13:51:21 +0200
committerMichael Stahl <mstahl@redhat.com>2017-09-18 14:04:04 +0200
commit629661de4a804bebaf2368adb865d14d04fa81ce (patch)
tree80d977ca3e8ce72f913b6d1b84af71fd6b581fe9 /hwpfilter
parent1f38a0fe112c6293d04357ad2082255aaaf7e7b3 (diff)
hwpfilter: [loplugin:redundantcast]
Change-Id: Ib8fbe3babc9eb2b0b1125de62b0b8012ac710889
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/grammar.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/hwpfilter/source/grammar.cxx b/hwpfilter/source/grammar.cxx
index a3ce4d3a8253..8c593a01315a 100644
--- a/hwpfilter/source/grammar.cxx
+++ b/hwpfilter/source/grammar.cxx
@@ -572,15 +572,12 @@ yynewstate:
yystacksize = YYMAXDEPTH;
yyfree_stacks = 1;
yyss = static_cast<short *>(malloc (yystacksize * sizeof (*yyssp)));
- memcpy (yyss, yyss1,
- size * (unsigned int) sizeof (*yyssp));
+ memcpy (yyss, yyss1, size * sizeof (*yyssp));
yyvs = static_cast<YYSTYPE *>(malloc (yystacksize * sizeof (*yyvsp)));
- memcpy (yyvs, yyvs1,
- size * (unsigned int) sizeof (*yyvsp));
+ memcpy (yyvs, yyvs1, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
yyls = (YYLTYPE *) malloc (yystacksize * sizeof (*yylsp));
- memcpy ((char *)yyls, (char *)yyls1,
- size * (unsigned int) sizeof (*yylsp));
+ memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
#endif
#endif /* no yyoverflow */