mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01: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;
|
T x = 0;
|
||||||
for (size_t i = 0; i < sizeof(x); ++i)
|
for (size_t i = 0; i < sizeof(x); ++i)
|
||||||
x |= *p++ << (i * 8);
|
x |= ((T) *p++) << (i * 8);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue