From b5d18f0aff317a648757c41b9ebe49cc95be8d83 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 14 Jan 2010 10:58:34 +0100 Subject: [PATCH] Add cast --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 6a231e4..f5dac06 100644 --- a/src/log.c +++ b/src/log.c @@ -577,7 +577,7 @@ int yaz_log_mask_str_x(const char *str, int level) else { char clean[509]; - char *n = clean_name(str, p-str, clean, sizeof(clean)); + char *n = clean_name(str, (size_t) (p - str), clean, sizeof(clean)); int mask = define_module_bit(n); if (!mask) level = 0; /* 'none' clears them all */ -- 1.7.10.4