Skip to content

Commit

Permalink
Fix off-by-one in double byteswapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Mar 10, 2019
1 parent e5fe0ab commit 6010eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endian.c
Expand Up @@ -87,7 +87,7 @@ void xlsConvertDouble(unsigned char *d)
for (i=0; i<4; i++)
{
t = d[7-i];
d[8-i] = d[i];
d[7-i] = d[i];
d[i] = t;
}
}
Expand Down

0 comments on commit 6010eda

Please sign in to comment.