* dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
authorDaniel Jacobowitz <drow@false.org>
Tue, 18 May 2004 21:20:07 +0000 (21:20 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 18 May 2004 21:20:07 +0000 (21:20 +0000)
passing it to printf.

sim/common/ChangeLog
sim/common/dv-glue.c

index 9ec22b379dc653263c00565664977a8553c029dc..d5c3a5043ed270385e179a62a5a10dc51a9c68b6 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-18  Daniel Jacobowitz  <dan@debian.org>
+
+       * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
+       passing it to printf.
+
 2004-05-10  Daniel Jacobowitz  <dan@debian.org>
 
        * callback.c: Update copyright dates.
index ab04fe737b29e100d80f6b1f0cf3c78acf75a27c..1a94ae6c162efc32fbe3acf02027f6ec3f305f72 100644 (file)
@@ -222,7 +222,7 @@ hw_glue_finish (struct hw *me)
       hw_abort (me, "at least one reg property size must be nonzero");
     if (glue->sizeof_output % sizeof (unsigned_word) != 0)
       hw_abort (me, "reg property size must be %ld aligned",
-               sizeof (unsigned_word));
+               (long) sizeof (unsigned_word));
     /* and the address */
     hw_unit_address_to_attach_address (hw_parent (me),
                                       &unit.address,
@@ -231,7 +231,7 @@ hw_glue_finish (struct hw *me)
                                       me);
     if (glue->address % (sizeof (unsigned_word) * max_nr_ports) != 0)
       hw_abort (me, "reg property address must be %ld aligned",
-               sizeof (unsigned_word) * max_nr_ports);
+               (long) (sizeof (unsigned_word) * max_nr_ports));
     glue->nr_outputs = glue->sizeof_output / sizeof (unsigned_word);
     glue->output = hw_zalloc (me, glue->sizeof_output);
   }
This page took 0.030967 seconds and 4 git commands to generate.