summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2007-10-18 19:02:42 -0700
committerCharles Crayne <chuck@thor.crayne.org>2007-10-18 19:02:42 -0700
commit192d5b5e9cfc1a0991ce26fd61aed07d09d4f4f7 (patch)
treeedcfe8357328fd9bbe2773513dc055c1b6fecd7b /preproc.c
parent2674b04d8879fdcbcf81937a1da7375d351e7ef8 (diff)
downloadnasm-192d5b5e9cfc1a0991ce26fd61aed07d09d4f4f7.tar.gz
Suppress a few signedness warnings
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/preproc.c b/preproc.c
index 48e72071..d242faf7 100644
--- a/preproc.c
+++ b/preproc.c
@@ -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';