diff options
author | Mike Pall <mike> | 2022-06-08 16:21:01 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2022-06-08 16:21:01 +0200 |
commit | 6053b04815ecbc8eec1e361ceb64e68fb8fac1b3 (patch) | |
tree | f95f8524efa0e9205ea152b3dc70f5c986c46a23 /dynasm/dasm_mips.h | |
parent | 02da2218ed81cb74979a61de6a0f3a6311496fc6 (diff) | |
download | luajit-6053b04815ecbc8eec1e361ceb64e68fb8fac1b3.tar.gz luajit-6053b04815ecbc8eec1e361ceb64e68fb8fac1b3.tar.bz2 luajit-6053b04815ecbc8eec1e361ceb64e68fb8fac1b3.zip |
DynASM: Fix warnings.
Diffstat (limited to 'dynasm/dasm_mips.h')
-rw-r--r-- | dynasm/dasm_mips.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dynasm/dasm_mips.h b/dynasm/dasm_mips.h index c92c9bf4..3e99a005 100644 --- a/dynasm/dasm_mips.h +++ b/dynasm/dasm_mips.h | |||
@@ -155,10 +155,10 @@ void dasm_setup(Dst_DECL, const void *actionlist) | |||
155 | #ifdef DASM_CHECKS | 155 | #ifdef DASM_CHECKS |
156 | #define CK(x, st) \ | 156 | #define CK(x, st) \ |
157 | do { if (!(x)) { \ | 157 | do { if (!(x)) { \ |
158 | D->status = DASM_S_##st|(p-D->actionlist-1); return; } } while (0) | 158 | D->status = DASM_S_##st|(int)(p-D->actionlist-1); return; } } while (0) |
159 | #define CKPL(kind, st) \ | 159 | #define CKPL(kind, st) \ |
160 | do { if ((size_t)((char *)pl-(char *)D->kind##labels) >= D->kind##size) { \ | 160 | do { if ((size_t)((char *)pl-(char *)D->kind##labels) >= D->kind##size) { \ |
161 | D->status = DASM_S_RANGE_##st|(p-D->actionlist-1); return; } } while (0) | 161 | D->status = DASM_S_RANGE_##st|(int)(p-D->actionlist-1); return; } } while (0) |
162 | #else | 162 | #else |
163 | #define CK(x, st) ((void)0) | 163 | #define CK(x, st) ((void)0) |
164 | #define CKPL(kind, st) ((void)0) | 164 | #define CKPL(kind, st) ((void)0) |
@@ -314,7 +314,7 @@ int dasm_link(Dst_DECL, size_t *szp) | |||
314 | 314 | ||
315 | #ifdef DASM_CHECKS | 315 | #ifdef DASM_CHECKS |
316 | #define CK(x, st) \ | 316 | #define CK(x, st) \ |
317 | do { if (!(x)) return DASM_S_##st|(p-D->actionlist-1); } while (0) | 317 | do { if (!(x)) return DASM_S_##st|(int)(p-D->actionlist-1); } while (0) |
318 | #else | 318 | #else |
319 | #define CK(x, st) ((void)0) | 319 | #define CK(x, st) ((void)0) |
320 | #endif | 320 | #endif |
@@ -417,7 +417,7 @@ int dasm_checkstep(Dst_DECL, int secmatch) | |||
417 | } | 417 | } |
418 | if (D->status == DASM_S_OK && secmatch >= 0 && | 418 | if (D->status == DASM_S_OK && secmatch >= 0 && |
419 | D->section != &D->sections[secmatch]) | 419 | D->section != &D->sections[secmatch]) |
420 | D->status = DASM_S_MATCH_SEC|(D->section-D->sections); | 420 | D->status = DASM_S_MATCH_SEC|(int)(D->section-D->sections); |
421 | return D->status; | 421 | return D->status; |
422 | } | 422 | } |
423 | #endif | 423 | #endif |