summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorKeith Kanios <spook@dynatos.net>2007-04-13 16:47:53 +0000
committerKeith Kanios <spook@dynatos.net>2007-04-13 16:47:53 +0000
commita6dfa78b7805673b2b4955a9f34e21825730f79d (patch)
treee92c44a08121248c0789b63d41908b402fcb891e /parser.c
parent2cc61b34f0bc87010a649159f62d37d5ed529ee4 (diff)
downloadnasm-a6dfa78b7805673b2b4955a9f34e21825730f79d.tar.gz
nasm-a6dfa78b7805673b2b4955a9f34e21825730f79d.tar.bz2
nasm-a6dfa78b7805673b2b4955a9f34e21825730f79d.zip
Fixed distinction between char and int8_t data types.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parser.c b/parser.c
index 63acdd2..a145bf1 100644
--- a/parser.c
+++ b/parser.c
@@ -46,7 +46,7 @@ void parser_global_info(struct ofmt *output, loc_t * locp)
location = locp;
}
-insn *parse_line(int pass, int8_t *buffer, insn * result,
+insn *parse_line(int pass, char *buffer, insn * result,
efunc errfunc, evalfunc evaluate, ldfunc ldef)
{
int operand;
@@ -220,7 +220,7 @@ insn *parse_line(int pass, int8_t *buffer, insn * result,
int32_t sign = +1L;
if (i == '-') {
- int8_t *save = stdscan_bufptr;
+ char *save = stdscan_bufptr;
i = stdscan(NULL, &tokval);
sign = -1L;
if (i != TOKEN_FLOAT || !is_comma_next()) {
@@ -253,7 +253,7 @@ insn *parse_line(int pass, int8_t *buffer, insn * result,
nasm_realloc(eop, sizeof(extop) + eop->stringlen);
tail = &eop->next;
*fixptr = eop;
- eop->stringval = (int8_t *)eop + sizeof(extop);
+ eop->stringval = (char *)eop + sizeof(extop);
if (eop->stringlen < 4 ||
!float_const(tokval.t_charptr, sign,
(uint8_t *)eop->stringval,
@@ -757,7 +757,7 @@ insn *parse_line(int pass, int8_t *buffer, insn * result,
static int is_comma_next(void)
{
- int8_t *p;
+ char *p;
int i;
struct tokenval tv;