X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.c;h=e010ff24696f5629e6f6ebaa623ba44573192109;hp=b5bd6ecfb04673eccb44fa7cb768da51735f90eb;hb=cfd001aea60f54e49d9beae0f941c513f45c202b;hpb=a7d3861005ef22f14caec4e1c899e079334716af diff --git a/sect.c b/sect.c index b5bd6ec..e010ff2 100644 --- a/sect.c +++ b/sect.c @@ -388,7 +388,7 @@ int AddFixup(uint16_t attr, uint32_t loc, TOKEN * fexpr) int ResolveFixups(int sno) { PTR fup; // Current fixup - VALUE eval; // Expression value + uint32_t eval; // Expression value SYM * sy; // (Temp) pointer to a symbol uint16_t i; // (Temp) word int reg2; @@ -514,7 +514,7 @@ int ResolveFixups(int sno) if (eattr & DEFINED) { if (tdb == sno) - eval -= (VALUE)loc; + eval -= (uint32_t)loc; else if (tdb) { error("PC-relative expr across sections"); @@ -525,7 +525,7 @@ int ResolveFixups(int sno) warn("unoptimized short branch"); } else if (obj_format == MWC) - eval -= (VALUE)loc; + eval -= (uint32_t)loc; tdb = 0; eattr &= ~TDB;