projects
/
sar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f44e9
)
Don't forget to cast
author
Robert Pengelly
<robertapengelly@hotmail.com>
Wed, 1 Oct 2025 11:10:09 +0000
(12:10 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Wed, 1 Oct 2025 11:10:09 +0000
(12:10 +0100)
lib.c
patch
|
blob
|
history
diff --git
a/lib.c
b/lib.c
index b4f4377ebbee473566f0a99691d4850c06cc5ffc..cde14cbaaacf913eebba9f9dce1d7a58563e3d2b 100644
(file)
--- a/
lib.c
+++ b/
lib.c
@@
-85,7
+85,7
@@
uint64_t array_to_integer (unsigned char *arr, int size, int bigendian) {
int j;
for (i = size, j = 0; i > 0; i--, j++) {
- value |= arr[j] << (CHAR_BIT * (i - 1));
+ value |=
(uint64_t)
arr[j] << (CHAR_BIT * (i - 1));
}
} else {