diff --git a/feed_info.c b/feed_info.c index fae140a..45fb927 100644 --- a/feed_info.c +++ b/feed_info.c @@ -58,7 +58,7 @@ zblock_feed_info_err zblock_feed_info_exists(PGconn *conn, const char *url, u64s return ZBLOCK_FEED_INFO_DBERROR; } - *exists = be32toh(*(uint32_t *) PQgetvalue(res, 0, 0)); + *exists = be64toh(*(uint64_t *) PQgetvalue(res, 0, 0)); PQclear(res); return ZBLOCK_FEED_INFO_OK; }