projects
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24bf8a0
)
Don't forget to cast
master
author
Robert Pengelly
<robertapengelly@hotmail.com>
Wed, 1 Oct 2025 11:11:45 +0000
(12:11 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Wed, 1 Oct 2025 11:11:45 +0000
(12:11 +0100)
common.c
patch
|
blob
|
history
diff --git
a/common.c
b/common.c
index 6ab1375b88eb6fb4af6be63390381d2dbf0b15e0..f9bef02245ec3c73fc4f5219e7c27b1f9b98defa 100644
(file)
--- 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++) {
int i;
for (i = 0; i < size; i++) {
- val |= arr[i] << (CHAR_BIT * i);
+ val |=
(unsigned long)
arr[i] << (CHAR_BIT * i);
}
return val;
}
return val;