diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 21:01:38 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 21:01:38 +0000 |
commit | 4cf1748e6829f80be251b8d7d274738009f934cf (patch) | |
tree | 59260e9aa7867952d80890859c0d06f6665fdfa5 /parser.c | |
parent | 734b188090539eddf08e61c317415f566446691b (diff) | |
download | nasm-4cf1748e6829f80be251b8d7d274738009f934cf.tar.gz nasm-4cf1748e6829f80be251b8d7d274738009f934cf.tar.bz2 nasm-4cf1748e6829f80be251b8d7d274738009f934cf.zip |
NASM 0.98.11
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -686,9 +686,12 @@ insn *parse_line (int pass, char *buffer, insn *result, if (is_simple(value)) { if (reloc_value(value)==1) result->oprs[operand].type |= UNITY; - if (reloc_value(value) >= -128 && - reloc_value(value) <= 127) - result->oprs[operand].type |= SBYTE; + if (optimizing) { + if (reloc_value(value) >= -128 && + reloc_value(value) <= 127) + result->oprs[operand].type |= SBYTE; + else result->oprs[operand].type |= SBIG; + } } } else /* it's a register */ |