diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 00:14:01 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 00:14:01 +0100 |
commit | 48b7c4478488046e190f8c9e5fa6bd4ddfb1018e (patch) | |
tree | dc0f7fe7a6224210d3da5a4513bb5ad090bb09d8 | |
parent | f5d6a06d2c46127e311e31132b3c0523c24c5e40 (diff) |
Cast 1 to appropriate type
-rw-r--r-- | src/work.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -125,7 +125,7 @@ process_file(const char *locl_filename, unsigned char **locl_buf) for (;;) { ptrdiff_t want = nw + st.st_blksize; if (want > basecap) { - if (want & (1 << (PTRDIFF_WIDTH - 1))) { + if (want & ((ptrdiff_t)1 << (PTRDIFF_WIDTH - 1))) { errno = EOVERFLOW; cerr(EXIT_FATAL, "%s:", __func__); } |