Skip to content
Snippets Groups Projects
Commit 0ba66451 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2402] Fix pointer to int conversion warning (atoi)

size_t is architecture dependant (32bits 64bits)
parent 5f4810cd
No related branches found
No related tags found
No related merge requests found
...@@ -1083,7 +1083,7 @@ sflphone_fill_codec_list() ...@@ -1083,7 +1083,7 @@ sflphone_fill_codec_list()
for(pl=codecs; *codecs; codecs++) for(pl=codecs; *codecs; codecs++)
{ {
details = (gchar **)dbus_codec_details(atoi(*codecs)); details = (gchar **)dbus_codec_details(atoi(*codecs));
if(codec_list_get_by_payload((gconstpointer)atoi(*codecs))!=NULL){ if(codec_list_get_by_payload((gconstpointer)(size_t)atoi(*codecs))!=NULL){
// does nothing - the codec is already in the list, so is active. // does nothing - the codec is already in the list, so is active.
} }
else{ else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment