From 1c04bbfea700a8a38719e9a30dd47b37bf609a3d Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 17 May 2022 16:12:46 +0200 Subject: Get rid of some warnings --- vchat-client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vchat-client.c') diff --git a/vchat-client.c b/vchat-client.c index db31c7c..39b42d9 100755 --- a/vchat-client.c +++ b/vchat-client.c @@ -292,10 +292,10 @@ getintoption (confopt option) #endif for (i = 0; configoptions[i].type != CO_NIL; i++) if ((configoptions[i].id == option) && (configoptions[i].type == CO_INT)) { - if ((uintptr_t)configoptions[i].value == -1) - return (uintptr_t) configoptions[i].defaultvalue; + if ((intptr_t)configoptions[i].value == -1) + return (intptr_t) configoptions[i].defaultvalue; else - return (uintptr_t) configoptions[i].value; + return (intptr_t) configoptions[i].value; } return 0; } -- cgit v1.2.3