diff options
author | Frank Kotler <fbkotler@users.sourceforge.net> | 2005-06-08 16:41:10 +0000 |
---|---|---|
committer | Frank Kotler <fbkotler@users.sourceforge.net> | 2005-06-08 16:41:10 +0000 |
commit | f3071da71e0ef3193d35a5afd1cc0c9cc4db5687 (patch) | |
tree | 7b1ffdd0f3a82e16258f5a194d18f50830e1ea29 /output | |
parent | 02f05cebbade344d0f84c42fde59c30582997b3a (diff) | |
download | nasm-f3071da71e0ef3193d35a5afd1cc0c9cc4db5687.tar.gz nasm-f3071da71e0ef3193d35a5afd1cc0c9cc4db5687.tar.bz2 nasm-f3071da71e0ef3193d35a5afd1cc0c9cc4db5687.zip |
fix outobj.c bug - every 256th extern crashed nasm
-
Diffstat (limited to 'output')
-rw-r--r-- | output/outobj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/output/outobj.c b/output/outobj.c index d1464fc..84a7bcd 100644 --- a/output/outobj.c +++ b/output/outobj.c @@ -1172,7 +1172,7 @@ static void obj_write_fixup(ObjRecord * orp, int bytes, else { long i = seg / 2; struct ExtBack *eb = ebhead; - while (i > EXT_BLKSIZ) { + while (i >= EXT_BLKSIZ) { if (eb) eb = eb->next; else @@ -1231,7 +1231,7 @@ static void obj_write_fixup(ObjRecord * orp, int bytes, else { long i = wrt / 2; struct ExtBack *eb = ebhead; - while (i > EXT_BLKSIZ) { + while (i >= EXT_BLKSIZ) { if (eb) eb = eb->next; else @@ -1766,7 +1766,7 @@ static long obj_segbase(long segment) struct ExtBack *eb = ebhead; struct External *e; - while (i > EXT_BLKSIZ) { + while (i >= EXT_BLKSIZ) { if (eb) eb = eb->next; else |