Reacted on -Wsign-compare warnings of gcc
This commit is contained in:
@@ -365,7 +365,8 @@ int isoburn_adjust_target_iso_head(struct isoburn *o,
|
||||
uint8_t *new_buf;
|
||||
uint32_t new_size;
|
||||
|
||||
if(o->target_iso_head_size == Libisoburn_target_head_sizE + 2048 * offst)
|
||||
if((uint32_t) o->target_iso_head_size ==
|
||||
Libisoburn_target_head_sizE + 2048 * offst)
|
||||
return(1);
|
||||
new_size= Libisoburn_target_head_sizE + 2048 * offst;
|
||||
new_buf= calloc(1, new_size);
|
||||
@@ -375,7 +376,8 @@ int isoburn_adjust_target_iso_head(struct isoburn *o,
|
||||
return(-1);
|
||||
}
|
||||
memcpy(new_buf, o->target_iso_head,
|
||||
o->target_iso_head_size < new_size ? o->target_iso_head_size : new_size);
|
||||
(uint32_t) o->target_iso_head_size < new_size ?
|
||||
(uint32_t) o->target_iso_head_size : new_size);
|
||||
free(o->target_iso_head);
|
||||
o->target_iso_head= new_buf;
|
||||
o->target_iso_head_size= new_size;
|
||||
|
Reference in New Issue
Block a user