sfdisk: fix implicit overflow

sfdisk.c:1650:6: warning: overflow in implicit constant conversion [-Woverflow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-05-30 22:19:53 +02:00
parent f74478a64d
commit b5ac06704e
1 changed files with 1 additions and 1 deletions

View File

@ -1647,7 +1647,7 @@ write_partitions(char *dev, int fd, struct disk_desc *z) {
if (p->ptype == DOS_TYPE) {
copy_from_part(&(p->p), s->data + p->offset);
s->data[510] = 0x55;
s->data[511] = 0xaa;
s->data[511] = (unsigned char) 0xaa;
}
}
if (save_sector_file) {