mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
float.c: BR 1879670: fix output byte order
The fix for the memory overwrite output the bytes in the wrong order. Fix.
This commit is contained in:
parent
2b046cf67f
commit
5a99f4f2f0
2
float.c
2
float.c
@ -805,7 +805,7 @@ static int to_float(const char *str, int s, uint8_t * result,
|
||||
mant[0] |= minus ? LIMB_TOP_BIT : 0;
|
||||
|
||||
for (i = fmt->bytes - 1; i >= 0; i--)
|
||||
*result++ = mant[i/LIMB_BYTES] >> ((i%LIMB_BYTES)*8);
|
||||
*result++ = mant[i/LIMB_BYTES] >> (((LIMB_BYTES-1)-(i%LIMB_BYTES))*8);
|
||||
|
||||
return 1; /* success */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user