[tracker/wip/carlosg/compiler-warnings] libtracker-sparql: Handle G_TYPE_UINT values in TrackerResource serialization



commit 92edde244680de39662326508ad78188e92b86d1
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]