mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 13:41:00 +01:00
parent
13c0db4d06
commit
def7b251d0
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ T readLittleEndian(unsigned char * p)
|
|||
{
|
||||
T x = 0;
|
||||
for (size_t i = 0; i < sizeof(x); ++i)
|
||||
x |= *p++ << (i * 8);
|
||||
x |= ((T) *p++) << (i * 8);
|
||||
return x;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue