diff options
author | Charles Crayne <chuck@thor.crayne.org> | 2007-10-18 19:02:42 -0700 |
---|---|---|
committer | Charles Crayne <chuck@thor.crayne.org> | 2007-10-18 19:02:42 -0700 |
commit | 192d5b5e9cfc1a0991ce26fd61aed07d09d4f4f7 (patch) | |
tree | edcfe8357328fd9bbe2773513dc055c1b6fecd7b /preproc.c | |
parent | 2674b04d8879fdcbcf81937a1da7375d351e7ef8 (diff) | |
download | nasm-192d5b5e9cfc1a0991ce26fd61aed07d09d4f4f7.tar.gz nasm-192d5b5e9cfc1a0991ce26fd61aed07d09d4f4f7.tar.bz2 nasm-192d5b5e9cfc1a0991ce26fd61aed07d09d4f4f7.zip |
Suppress a few signedness warnings
Diffstat (limited to 'preproc.c')
-rw-r--r-- | preproc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1273,9 +1273,9 @@ smacro_defined(Context * ctx, char *name, int nparam, SMacro ** defn, 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; @@ -2579,7 +2579,7 @@ static int do_directive(Token * tline) 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'; |