Reacted on -Wsign-compare warnings of gcc
This commit is contained in:
parent
ebbdcfdef8
commit
60da37781b
@ -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;
|
||||
|
@ -429,7 +429,7 @@ static int isoburn_inspect_partition(struct isoburn *o, uint32_t img_size,
|
||||
o->loaded_partition_offset= offst;
|
||||
|
||||
/* If the partition start is too large: Report but do not accept. */
|
||||
if(offst > max_offst) { /* Not more than 1 MB of .target_iso_head */
|
||||
if(offst > (uint32_t) max_offst) {/* Not more than 1 MB of .target_iso_head */
|
||||
sprintf(msg,
|
||||
"Detected partition offset of %.f blocks. Maximum for load buffer is %d",
|
||||
(double) offst, max_offst);
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2011.05.09.181239"
|
||||
#define Xorriso_timestamP "2011.05.09.181449"
|
||||
|
Loading…
Reference in New Issue
Block a user