aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbparse.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-12-12 05:31:56 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-02-15 18:36:14 +0000
commit8e1ade8516ef74b8bcc64e783400c2d0939250ef (patch)
treecc549cab9fdfdcdeea7030396f3db72b0d6855a3 /epan/tvbparse.c
parenta6a358ef96f1fd381b124f9e5935328a18dad3ca (diff)
Use cast to char for explicit conversion [-Woverflow]
Change-Id: If33cf41f46f2be9c66fc4a626af6a2c010fba7d3 Reviewed-on: https://code.wireshark.org/review/13931 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/tvbparse.c')
-rw-r--r--epan/tvbparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbparse.c b/epan/tvbparse.c
index eb6f04c518..3a6a559962 100644
--- a/epan/tvbparse.c
+++ b/epan/tvbparse.c
@@ -227,7 +227,7 @@ tvbparse_wanted_t* tvbparse_chars(const int id,
accept_str = (char *)g_malloc(256);
memset(accept_str, 0x00, 256);
for (i = 0; chr[i]; i++)
- accept_str[(unsigned) chr[i]] = 0xFF;
+ accept_str[(unsigned)chr[i]] = (char)0xFF;
w->condition = cond_chars_common;
w->id = id;