In the source files that I use in my project, there is a comparison between the ssize_t and size_t variables:
ssize_t sst; size_t st; if(sst == st){...}
I would like to get rid of the warning:
warning: comparison between signed and unsigned integer expressions
But I'm not sure which variable I should give to another?
if((size_t)sst == st){...}
or
if(sst == (ssize_t)st){...}
Which is safer, better, cleaner? Thanks
rluks
source share