mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02: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