password hash endianess fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5765 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -146,14 +146,6 @@ namespace tiger
|
||||
while(j < 56) temp[j++] = 0;
|
||||
*(chunk *)(temp+56) = (chunk)length<<3;
|
||||
compress((chunk *)temp, val.chunks);
|
||||
if(!*(const uchar *)&islittleendian)
|
||||
{
|
||||
loopk(3)
|
||||
{
|
||||
uchar *c = &val.bytes[k*sizeof(chunk)];
|
||||
loopl(sizeof(chunk)/2) swap(c[l], c[sizeof(chunk)-1-l]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user