diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/join.c b/src/join.c index db875ec32..2716ae339 100644 --- a/src/join.c +++ b/src/join.c @@ -642,7 +642,7 @@ string_to_join_field (char const *str, char const *err_msg_fmt) uintmax_t val; strtol_error s_err = xstrtoumax (str, NULL, 10, &val, ""); - if (s_err == LONGINT_OVERFLOW || SIZE_MAX < val) + if (s_err == LONGINT_OVERFLOW || (s_err == LONGINT_OK && SIZE_MAX < val)) { error (EXIT_FAILURE, 0, _("value %s is so large that it is not representable"), |