Merge branch 'master' into mlb2

This commit is contained in:
Olaf Seibert
2017-05-04 23:02:08 +02:00
4 changed files with 220 additions and 1 deletions

View File

@@ -859,7 +859,7 @@ static int assemble(
/* FIXME I don't know if the following
is portable enough. */
if (tvalue->data.lit & 0x8000)
sword |= ~0xFFFF; /* Render negative */
sword |= ~0x7FFF; /* Render negative */
/* Reduce unsigned value to 16 bits */
uword = tvalue->data.lit & 0xffff;