summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-04-30 21:01:38 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-04-30 21:01:38 +0000
commit4cf1748e6829f80be251b8d7d274738009f934cf (patch)
tree59260e9aa7867952d80890859c0d06f6665fdfa5 /parser.c
parent734b188090539eddf08e61c317415f566446691b (diff)
downloadnasm-4cf1748e6829f80be251b8d7d274738009f934cf.tar.gz
nasm-4cf1748e6829f80be251b8d7d274738009f934cf.tar.bz2
nasm-4cf1748e6829f80be251b8d7d274738009f934cf.zip
NASM 0.98.11
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index 00dfcad..d802f05 100644
--- a/parser.c
+++ b/parser.c
@@ -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 */