summaryrefslogtreecommitdiff
path: root/rdoff/rdfload.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 /rdoff/rdfload.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 'rdoff/rdfload.c')
-rw-r--r--rdoff/rdfload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rdoff/rdfload.c b/rdoff/rdfload.c
index a7a059f..cd24c2d 100644
--- a/rdoff/rdfload.c
+++ b/rdoff/rdfload.c
@@ -27,11 +27,11 @@
extern int rdf_errno;
-rdfmodule *rdfload(const int8_t *filename)
+rdfmodule *rdfload(const char *filename)
{
rdfmodule *f;
int32_t bsslength = 0;
- int8_t *hdr;
+ char *hdr;
rdfheaderrec *r;
f = malloc(sizeof(rdfmodule));
@@ -150,7 +150,7 @@ int rdf_relocate(rdfmodule * m)
non-portable */
switch (r->r.length) {
case 1:
- seg[r->r.offset] += (int8_t)rel;
+ seg[r->r.offset] += (char)rel;
break;
case 2:
*(uint16_t *) (seg + r->r.offset) += (uint16_t) rel;