diff options
Diffstat (limited to 'dynasm/dasm_x86.h')
-rw-r--r-- | dynasm/dasm_x86.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dynasm/dasm_x86.h b/dynasm/dasm_x86.h index eb2bc768..c91bfdd5 100644 --- a/dynasm/dasm_x86.h +++ b/dynasm/dasm_x86.h | |||
@@ -213,7 +213,8 @@ void dasm_put(Dst_DECL, int start, ...) | |||
213 | case DASM_REL_LG: | 213 | case DASM_REL_LG: |
214 | case DASM_IMM_LG: | 214 | case DASM_IMM_LG: |
215 | n = *p++; pl = D->lglabels + n; | 215 | n = *p++; pl = D->lglabels + n; |
216 | if (n <= 246) { CKPL(lg, LG); goto putrel; } /* Bkwd rel or global. */ | 216 | /* Bkwd rel or global. */ |
217 | if (n <= 246) { CK(n>=10||*pl<0, RANGE_LG); CKPL(lg, LG); goto putrel; } | ||
217 | pl -= 246; n = *pl; | 218 | pl -= 246; n = *pl; |
218 | if (n < 0) n = 0; /* Start new chain for fwd rel if label exists. */ | 219 | if (n < 0) n = 0; /* Start new chain for fwd rel if label exists. */ |
219 | goto linkrel; | 220 | goto linkrel; |