|
@@ -154,10 +154,10 @@ void dasm_setup(Dst_DECL, const void *actionlist)
|
|
|
#ifdef DASM_CHECKS
|
|
|
#define CK(x, st) \
|
|
|
do { if (!(x)) { \
|
|
|
- D->status = DASM_S_##st|(p-D->actionlist-1); return; } } while (0)
|
|
|
+ D->status = DASM_S_##st|(int)(p-D->actionlist-1); return; } } while (0)
|
|
|
#define CKPL(kind, st) \
|
|
|
do { if ((size_t)((char *)pl-(char *)D->kind##labels) >= D->kind##size) { \
|
|
|
- D->status = DASM_S_RANGE_##st|(p-D->actionlist-1); return; } } while (0)
|
|
|
+ D->status=DASM_S_RANGE_##st|(int)(p-D->actionlist-1); return; } } while (0)
|
|
|
#else
|
|
|
#define CK(x, st) ((void)0)
|
|
|
#define CKPL(kind, st) ((void)0)
|
|
@@ -463,7 +463,7 @@ int dasm_checkstep(Dst_DECL, int secmatch)
|
|
|
}
|
|
|
if (D->status == DASM_S_OK && secmatch >= 0 &&
|
|
|
D->section != &D->sections[secmatch])
|
|
|
- D->status = DASM_S_MATCH_SEC|(D->section-D->sections);
|
|
|
+ D->status = DASM_S_MATCH_SEC|(int)(D->section-D->sections);
|
|
|
return D->status;
|
|
|
}
|
|
|
#endif
|