[tracker: 8/14] tracker-sparql-parser: Fix gsize vs gssize comparison
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 8/14] tracker-sparql-parser: Fix gsize vs gssize comparison
- Date: Sat, 8 May 2021 17:25:48 +0000 (UTC)
commit ad9ba2066db27b5bbf3ddff99157fd571ee01975
Author: Daniele Nicolodi <daniele grinta net>
Date: Sun May 2 14:40:12 2021 +0200
tracker-sparql-parser: Fix gsize vs gssize comparison
Change TrackerGrammarParser::query_len type from gsize to gssize for
type consistency with the variables with which it is most often
compared.
src/libtracker-data/tracker-sparql-parser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-parser.c b/src/libtracker-data/tracker-sparql-parser.c
index 70872c321..b01d626c2 100644
--- a/src/libtracker-data/tracker-sparql-parser.c
+++ b/src/libtracker-data/tracker-sparql-parser.c
@@ -76,7 +76,7 @@ struct _TrackerParserState {
struct _TrackerGrammarParser {
const gchar *query;
- gsize query_len;
+ gssize query_len;
};
static TrackerNodeTree *
@@ -424,7 +424,7 @@ tracker_grammar_parser_apply_rule_literal (TrackerGrammarParser *parser,
{
TrackerParserNode *node;
gboolean next_isalnum;
- gsize len;
+ gssize len;
if (rule->string[0] != parser->query[state->current] &&
rule->string[0] != g_ascii_tolower (parser->query[state->current]))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]