Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 5a1ac043 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

URI: The change the return type of 'lkt_uri_get_value_as_int' to int

It makes more sens for a function called 'as_int' to return an 'int'...
parent fd8ab9fa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!177Add the query to the `update` command to filter karas to update
Pipeline #2486 réussi
......@@ -61,7 +61,7 @@ void lkt_uri_free(struct lkt_uri *ret);
LKT_URI_TYPE lkt_uri_get_type(const struct lkt_uri *);
const char *lkt_uri_get_value_as_str(const struct lkt_uri *);
size_t lkt_uri_get_value_as_int(const struct lkt_uri *);
int lkt_uri_get_value_as_int(const struct lkt_uri *);
LKT_URI_VALUE_TYPE lkt_uri_get_value_type(const struct lkt_uri *);
const char *lkt_uri_get_column_name(const struct lkt_uri *);
......
......@@ -71,12 +71,12 @@ lkt_uri_get_value_as_str(const struct lkt_uri *uri)
return (const char *)uri->value;
}
size_t
int
lkt_uri_get_value_as_int(const struct lkt_uri *uri)
{
if (uri == NULL || uri->type == URI_NULL || !uri->is_int)
return 0u;
return uri->id;
return 0;
return (int)uri->id;
}
LKT_URI_VALUE_TYPE
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter