]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix warning on some build systems
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 26 Nov 2009 21:19:37 +0000 (22:19 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 26 Nov 2009 21:19:37 +0000 (22:19 +0100)
lib/relocator.c

index 68260b1974610ae0bdd6248a1b01efc8662f81f5..31695ff62534afee8036963e1b883c938a011a2d 100644 (file)
@@ -75,9 +75,9 @@ PREFIX (boot) (void *relocator, grub_uint32_t dest,
   /* Very unlikely condition: Relocator may risk overwrite itself.
      Just move it a bit up.  */
   if ((grub_uint8_t *) UINT_TO_PTR (dest) - (grub_uint8_t *) relocator
-      < RELOCATOR_SIZEOF (backward) + RELOCATOR_ALIGN
+      < (signed) (RELOCATOR_SIZEOF (backward) + RELOCATOR_ALIGN)
       && (grub_uint8_t *) UINT_TO_PTR (dest) - (grub_uint8_t *) relocator
-      > -(RELOCATOR_SIZEOF (forward) + RELOCATOR_ALIGN))
+      > - (signed) (RELOCATOR_SIZEOF (forward) + RELOCATOR_ALIGN))
     {
       void *relocator_new = ((grub_uint8_t *) relocator)
        + (RELOCATOR_SIZEOF (forward) + RELOCATOR_ALIGN)