text import: Remove an unneeded cast.

Don't bother casting to a guint32. We check for large values further on.
This commit is contained in:
Gerald Combs 2021-12-25 10:24:08 -08:00 committed by Wireshark GitLab Utility
parent 5f3197e8be
commit 38dbb8486f
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ parse_num(const char *str, int offset, guint32* num)
}
errno = 0;
unsigned long ulnum = (guint32)strtoul(str, &c, offset ? offset_base : 16);
unsigned long ulnum = strtoul(str, &c, offset ? offset_base : 16);
if (errno != 0) {
report_failure("Unable to convert %s to base %u: %s", str,
offset ? offset_base : 16, g_strerror(errno));