l = len;
while (l > 0) {
int32_t m =
- fread(buf, 1, (l > sizeof(buf) ? sizeof(buf) : l),
+ fread(buf, 1, (l > (int32_t) sizeof(buf) ? (int32_t) sizeof(buf) : l),
fp);
if (!m) {
/*
if (process_arg(prevarg, p))
*p = '\0';
- if (strlen(p) > prevargsize - 10) {
+ if ((int) strlen(p) > prevargsize - 10) {
prevargsize += ARG_BUF_DELTA;
prevarg = nasm_realloc(prevarg, prevargsize);
}
while (m) {
if (!mstrcmp(m->name, name, m->casesense && nocase) &&
- (nparam <= 0 || m->nparam == 0 || nparam == m->nparam)) {
+ (nparam <= 0 || m->nparam == 0 || nparam == (int) m->nparam)) {
if (defn) {
- if (nparam == m->nparam || nparam == -1)
+ if (nparam == (int) m->nparam || nparam == -1)
*defn = m;
else
*defn = NULL;
macro_start->next = NULL;
macro_start->text = nasm_strdup("'''");
if (evalresult->value > 0
- && evalresult->value < strlen(t->text) - 1) {
+ && evalresult->value < (int) strlen(t->text) - 1) {
macro_start->text[1] = t->text[evalresult->value];
} else {
macro_start->text[2] = '\0';