aboutsummaryrefslogtreecommitdiff
path: root/src/work.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/work.c')
-rw-r--r--src/work.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/work.c b/src/work.c
index 06b0eb8..6e658db 100644
--- a/src/work.c
+++ b/src/work.c
@@ -126,7 +126,7 @@ process_file(const char *locl_filename, unsigned char **locl_buf)
for (;;) {
ptrdiff_t want = nw + st.st_blksize;
if (want > basecap) {
- if (want & ((ptrdiff_t)1 << (PTRDIFF_WIDTH - 1))) {
+ if (want & ((ptrdiff_t)1 << (PTRDIFF_WIDTH - 2))) {
errno = EOVERFLOW;
cerr(EXIT_FATAL, "%s:", __func__);
}