wmcdplay: Fix -Wsign-compare compiler warnings.
This commit is contained in:
parent
0716c46281
commit
f59aef482d
|
@ -224,7 +224,7 @@ int main(int argc, char **argv)
|
||||||
pressEvent(&xev.xbutton);
|
pressEvent(&xev.xbutton);
|
||||||
break;
|
break;
|
||||||
case ClientMessage:
|
case ClientMessage:
|
||||||
if(xev.xclient.data.l[0]==deleteWin)
|
if((Atom) xev.xclient.data.l[0]==deleteWin)
|
||||||
done=true;
|
done=true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -607,7 +607,7 @@ void update(){
|
||||||
|
|
||||||
void drawText(int x, int y, char *text){
|
void drawText(int x, int y, char *text){
|
||||||
int drawx=x;
|
int drawx=x;
|
||||||
for(int i=0;i<strlen(text);i++){
|
for(size_t i=0;i<strlen(text);i++){
|
||||||
char *chrptr=strchr(chrset,text[i]);
|
char *chrptr=strchr(chrset,text[i]);
|
||||||
if(chrptr!=NULL){
|
if(chrptr!=NULL){
|
||||||
int chrindex=chrptr-chrset;
|
int chrindex=chrptr-chrset;
|
||||||
|
|
Loading…
Reference in a new issue