diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-05-18 21:20:07 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-05-18 21:20:07 +0000 |
commit | 7659f80a232ff3d770cee9d968c6f4bab49b666d (patch) | |
tree | 1c0c27c3707f978339ce239d9f832759221c6f82 /sim/common/dv-glue.c | |
parent | 4d06b60c7fd6f76321fc4d0a1799c21ff72839a8 (diff) | |
download | gdb-7659f80a232ff3d770cee9d968c6f4bab49b666d.zip gdb-7659f80a232ff3d770cee9d968c6f4bab49b666d.tar.gz gdb-7659f80a232ff3d770cee9d968c6f4bab49b666d.tar.bz2 |
* dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
passing it to printf.
Diffstat (limited to 'sim/common/dv-glue.c')
-rw-r--r-- | sim/common/dv-glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/dv-glue.c b/sim/common/dv-glue.c index ab04fe7..1a94ae6 100644 --- a/sim/common/dv-glue.c +++ b/sim/common/dv-glue.c @@ -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); } |