Reacted on -Wsign-compare warnings of gcc
This commit is contained in:
@ -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--)
|
||||
|
Reference in New Issue
Block a user