[tracker/wip/carlosg/compiler-warnings: 80/80] libtracker-sparql: Handle G_TYPE_UINT values in TrackerResource serialization
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/compiler-warnings: 80/80] libtracker-sparql: Handle G_TYPE_UINT values in TrackerResource serialization
- Date: Tue, 30 Aug 2022 16:56:48 +0000 (UTC)
commit 12ba2a1c6db1a3e40d7fc484afc0420098411f6f
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 29 19:43:59 2022 +0200
libtracker-sparql: Handle G_TYPE_UINT values in TrackerResource serialization
Even though the TrackerResource helper functions don't use this type internally,
it may be set directly through tracker_resource_set_gvalue(). Handle this
additional type, since it's used in some Tracker Miners extractors.
src/libtracker-sparql/tracker-deserializer-resource.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-sparql/tracker-deserializer-resource.c
b/src/libtracker-sparql/tracker-deserializer-resource.c
index 33e873bb4..4c3e09fab 100644
--- a/src/libtracker-sparql/tracker-deserializer-resource.c
+++ b/src/libtracker-sparql/tracker-deserializer-resource.c
@@ -203,6 +203,7 @@ value_type_from_gtype (const GValue *value)
} else if (G_VALUE_HOLDS (value, G_TYPE_BOOLEAN)) {
return TRACKER_SPARQL_VALUE_TYPE_BOOLEAN;
} else if (G_VALUE_HOLDS (value, G_TYPE_INT) ||
+ G_VALUE_HOLDS (value, G_TYPE_UINT) ||
G_VALUE_HOLDS (value, G_TYPE_INT64)) {
return TRACKER_SPARQL_VALUE_TYPE_INTEGER;
} else if (G_VALUE_HOLDS (value, G_TYPE_DOUBLE)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]