diff options
author | Graham Bloice <graham.bloice@trihedral.com> | 2015-04-26 14:38:32 +0100 |
---|---|---|
committer | Graham Bloice <graham.bloice@trihedral.com> | 2015-04-27 14:40:16 +0000 |
commit | f9e7fd5898a8df3b22566f7d2ce7a0d06f5f4532 (patch) | |
tree | 226b1a9a05857600af0551874120a97d55db637f /epan/uat_load.l | |
parent | af11fde75da076a809b87520404240e901032c52 (diff) | |
download | wireshark-f9e7fd5898a8df3b22566f7d2ce7a0d06f5f4532.tar.gz |
Fix x64 compilation warning
The build warning:
C:/buildbot/wireshark/wireshark-master-64/win7x64/build/cmbuild/epan/uat_load.c(1348):
warning C4267: '+=' : conversion from 'size_t' to 'guint', possible loss of data
is caused by parse_str_pos being a guint and adding a size_t value.
Fix by declaring parse_str_pos as size_t.
Change-Id: I0e33ea710abeb0ea23d816f35bc3eda8d9b13e60
Reviewed-on: https://code.wireshark.org/review/8198
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Diffstat (limited to 'epan/uat_load.l')
-rw-r--r-- | epan/uat_load.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l index 43452fc701..ae5287a006 100644 --- a/epan/uat_load.l +++ b/epan/uat_load.l @@ -75,7 +75,7 @@ static gchar* error; static void* record; static guint linenum; static gchar *parse_str; -static guint parse_str_pos; +static size_t parse_str_pos; #define ERROR(fmtd) do { \ char* fmt_str = g_strdup_printf fmtd; \ |