Reacted on -Wsign-compare warnings of gcc

This commit is contained in:
2011-05-09 18:12:16 +00:00
parent 042879fd59
commit ebbdcfdef8
14 changed files with 52 additions and 48 deletions

View File

@ -939,7 +939,7 @@ int Xorriso_msgs_submit(struct XorrisO *xorriso,
sprintf(prefix,"%s%s : ", pfx_list[(flag>>2)&15], sev_text);
li= strlen(prefix);
lt= strlen(msg_text);
if(lt>sizeof(xorriso->info_text)-li-2)
if(lt > ((int) sizeof(xorriso->info_text)) - li - 2)
lt= sizeof(xorriso->info_text)-li-2;
if(msg_text==xorriso->info_text) {
for(i= lt; i>=0; i--)