diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-08 16:34:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-08 16:34:53 +0100 |
commit | 91a05a2caa1f35b78d704ed93f52c0c2f6c491cd (patch) | |
tree | 3c93ee9f13fa3f2670c8118af40b44e01730fc75 /src/libserver | |
parent | c7b0eed6161a1f3ef45f4dcb6df5d48796b33c24 (diff) | |
download | rspamd-91a05a2caa1f35b78d704ed93f52c0c2f6c491cd.tar.gz rspamd-91a05a2caa1f35b78d704ed93f52c0c2f6c491cd.zip |
Fix stupid cast issue.
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index 23b052b50..5a22a25e1 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -309,8 +309,8 @@ static const unsigned int url_scanner_table[256] = { IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE }; -#define is_lwsp(x) ((url_scanner_table[(guint)(x)] & IS_LWSP) != 0) -#define is_mailsafe(x) ((url_scanner_table[(guint)(x)] & (IS_MAILSAFE)) != 0) +#define is_lwsp(x) ((url_scanner_table[(guchar)(x)] & IS_LWSP) != 0) +#define is_mailsafe(x) ((url_scanner_table[(guchar)(x)] & (IS_MAILSAFE)) != 0) #define is_domain(x) ((url_scanner_table[(guchar)(x)] & IS_DOMAIN) != 0) #define is_urlsafe(x) ((url_scanner_table[(guchar)(x)] & (IS_URLSAFE)) != 0) |