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>
This commit is contained in:
Graham Bloice 2015-04-26 14:38:32 +01:00
parent af11fde75d
commit f9e7fd5898
1 changed files with 1 additions and 1 deletions

View File

@ -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; \