rawshark: remove redundant cast.
authorDario Lombardo <lomato@gmail.com>
Thu, 3 Jan 2019 16:42:21 +0000 (17:42 +0100)
committerGuy Harris <guy@alum.mit.edu>
Thu, 3 Jan 2019 22:10:33 +0000 (22:10 +0000)
Found by clang-tidy.

Change-Id: I50912055e0230173af3a6b008fafb12144b02f8d
Reviewed-on: https://code.wireshark.org/review/31335
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
rawshark.c

index 81427ff841b7a75f938ed7c5ab077c824f49f2ab..2dac7a02b1bfceed42f29de319c59f10ae745014 100644 (file)
@@ -1188,7 +1188,7 @@ static gboolean print_field_value(field_info *finfo, int cmd_line_index)
                             case FT_INT56:
                             case FT_INT64:
                                 DISSECTOR_ASSERT(!hfinfo->bitmask);
-                                svalue64 = (gint64)fvalue_get_sinteger64(&finfo->value);
+                                svalue64 = fvalue_get_sinteger64(&finfo->value);
                                 if (hfinfo->display & BASE_VAL64_STRING) {
                                     g_string_append(label_s, val64_to_str_const(svalue64, (const val64_string *)(hfinfo->strings), "Unknown"));
                                 }