Reacted on -Wsign-compare warnings of gcc

This commit is contained in:
2011-05-09 18:14:29 +00:00
parent 37987ecfe6
commit 7e2d7e5997
3 changed files with 6 additions and 4 deletions

View File

@@ -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);