diff options
author | Sami Kerola | 2011-05-30 22:19:53 +0200 |
---|---|---|
committer | Sami Kerola | 2011-05-30 22:19:53 +0200 |
commit | b5ac06704eb7804422adea2bd7152c4962e2061a (patch) | |
tree | 9ae481b30598d7a69e806c033c37e57b7800e620 /fdisk/sfdisk.c | |
parent | docs: sfdisk manual update (diff) | |
download | kernel-qcow2-util-linux-b5ac06704eb7804422adea2bd7152c4962e2061a.tar.gz kernel-qcow2-util-linux-b5ac06704eb7804422adea2bd7152c4962e2061a.tar.xz kernel-qcow2-util-linux-b5ac06704eb7804422adea2bd7152c4962e2061a.zip |
sfdisk: fix implicit overflow
sfdisk.c:1650:6: warning: overflow in implicit constant conversion [-Woverflow]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'fdisk/sfdisk.c')
-rw-r--r-- | fdisk/sfdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisk/sfdisk.c b/fdisk/sfdisk.c index d4dbcca36..afecb93fa 100644 --- a/fdisk/sfdisk.c +++ b/fdisk/sfdisk.c @@ -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) { |