From 16ee995cfeff2af51b5f00b15fe1500cc4deeb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 7 Oct 2011 01:16:31 +0300 Subject: lua, filter: fix 64-bit issues --- src/lua-squarkdb.c | 2 +- src/squark-filter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lua-squarkdb.c b/src/lua-squarkdb.c index 5a30848..cc840c6 100644 --- a/src/lua-squarkdb.c +++ b/src/lua-squarkdb.c @@ -199,7 +199,7 @@ static int Lsqdb_create_index(lua_State *L) static int Lsqdb_assign_index(lua_State *L) { struct sqdb *db; - size_t size; + uint32_t size; lua_Integer idx; struct sqdb_index_entry *ptr; diff --git a/src/squark-filter.c b/src/squark-filter.c index 09693c9..407c1b5 100644 --- a/src/squark-filter.c +++ b/src/squark-filter.c @@ -248,7 +248,7 @@ static int url_classify(struct url_info *url, struct sqdb *db) indx[p].parent != SQDB_PARENT_ROOT || blob_cmp(tld, sqdb_get_string_literal(db, indx[p].component)) != 0) { /* top level domain did not match */ - i = -1; + i = SQDB_PARENT_ROOT; goto parent_dns_match; } tld = BLOB_NULL; -- cgit v1.2.3