From: Collin Funk Date: Tue, 24 Mar 2026 02:32:21 +0000 (-0700) Subject: maint: remove some unnecessary casts X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=430822d5f71ff95bc813ddc254d559d808177d57;p=thirdparty%2Fcoreutils.git maint: remove some unnecessary casts * src/sort.c (begfield, limfield): Remove size_t casts. --- diff --git a/src/sort.c b/src/sort.c index aaab47b50e..510c674d9d 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1725,7 +1725,7 @@ begfield (struct line const *line, struct keyfield const *key) if (tab != TAB_DEFAULT) while (ptr < lim && sword--) { - char *sep = memchr (ptr, tab, (size_t) (lim - ptr)); + char *sep = memchr (ptr, tab, lim - ptr); ptr = sep ? sep : lim; if (ptr < lim) ++ptr; @@ -1778,7 +1778,7 @@ limfield (struct line const *line, struct keyfield const *key) if (tab != TAB_DEFAULT) while (ptr < lim && eword--) { - char *sep = memchr (ptr, tab, (size_t) (lim - ptr)); + char *sep = memchr (ptr, tab, lim - ptr); ptr = sep ? sep : lim; if (ptr < lim && (eword || echar)) ++ptr;