From: Robert Pengelly Date: Wed, 1 Oct 2025 11:11:45 +0000 (+0100) Subject: Don't forget to cast X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=HEAD;p=e2fsprogs.git Don't forget to cast --- diff --git a/common.c b/common.c index 6ab1375..f9bef02 100644 --- a/common.c +++ b/common.c @@ -225,7 +225,7 @@ unsigned long byte_array_to_integer (unsigned char *arr, int size) { int i; for (i = 0; i < size; i++) { - val |= arr[i] << (CHAR_BIT * i); + val |= (unsigned long) arr[i] << (CHAR_BIT * i); } return val;