[tracker: 4/14] tracker-serializer-xml: Fix long vs gsize comparison
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 4/14] tracker-serializer-xml: Fix long vs gsize comparison
- Date: Sat, 8 May 2021 17:25:47 +0000 (UTC)
commit dcb40e88e7d24894436b432ec09c4181b919f3a5
Author: Daniele Nicolodi <daniele grinta net>
Date: Sun May 2 12:33:36 2021 +0200
tracker-serializer-xml: Fix long vs gsize comparison
I do not understand the rationale for xmlBufferLength to return a long
instead of the more idiomatic size_t but this is what it is.
src/libtracker-sparql/tracker-serializer-xml.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-sparql/tracker-serializer-xml.c b/src/libtracker-sparql/tracker-serializer-xml.c
index d2b66f83b..9e4b5ec47 100644
--- a/src/libtracker-sparql/tracker-serializer-xml.c
+++ b/src/libtracker-sparql/tracker-serializer-xml.c
@@ -109,7 +109,7 @@ serialize_up_to_position (TrackerSerializerXml *serializer_xml,
}
while (!serializer_xml->cursor_finished &&
- xmlBufferLength (serializer_xml->buffer) < pos) {
+ (gsize) xmlBufferLength (serializer_xml->buffer) < pos) {
if (!tracker_sparql_cursor_next (cursor, cancellable, &inner_error)) {
if (inner_error) {
g_propagate_error (error, inner_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]