summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-08-27 23:25:04 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-08-27 23:25:04 +0400
commit68a344003ab976cf6abad381efe2bb42b5c3f2f2 (patch)
tree274c818867a9af382e0f1bf251a9c0158db27408 /parser.c
parent21d4ccc3c338ada6e52b9a10373f138f790c8b5d (diff)
downloadnasm-68a344003ab976cf6abad381efe2bb42b5c3f2f2.tar.gz
nasm-68a344003ab976cf6abad381efe2bb42b5c3f2f2.tar.bz2
nasm-68a344003ab976cf6abad381efe2bb42b5c3f2f2.zip
parser.c: Drop space line and use hex notation
For big numbers it's easier to estimate bytes count if they are written in hex notation. Let it be so. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index 75bd344..681aa39 100644
--- a/parser.c
+++ b/parser.c
@@ -868,10 +868,9 @@ is_expression:
result->oprs[operand].type |= SBYTE16;
if ((uint64_t)v64 <= UINT64_C(0xffffffff))
result->oprs[operand].type |= UDWORD64;
- if (v64 >= -INT64_C(2147483648) &&
- v64 <= INT64_C(2147483647))
+ if (v64 >= -INT64_C(0x80000000) &&
+ v64 <= INT64_C(0x7fffffff))
result->oprs[operand].type |= SDWORD64;
-
}
}
} else { /* it's a register */