mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 06:56:14 +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…
Reference in a new issue