]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 16:02:40 +0000 (18:02 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 16:02:40 +0000 (18:02 +0200)
than int.

ChangeLog
grub-core/commands/gptsync.c

index dd5d28063b4c28bc94c48f72a47f676ae2dfb11b..299d51b4d71b0e530d63b6a40a3bf4da31dff177 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
+       than int.
+
 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
index 1a203dc59d2fa70c23c62ba3b61d77eca83412e5..3db62887b92408d734f133843aeb41b9d762a296 100644 (file)
@@ -37,11 +37,11 @@ GRUB_MOD_LICENSE ("GPLv3+");
    Is it a problem?
 */
 static void
-lba_to_chs (int lba, grub_uint8_t *cl, grub_uint8_t *ch,
+lba_to_chs (grub_uint32_t lba, grub_uint8_t *cl, grub_uint8_t *ch,
            grub_uint8_t *dh)
 {
-  int cylinder, head, sector;
-  int sectors = 63, heads = 255, cylinders = 1024;
+  grub_uint32_t cylinder, head, sector;
+  grub_uint32_t sectors = 63, heads = 255, cylinders = 1024;
 
   sector = lba % sectors + 1;
   head = (lba / sectors) % heads;