Skip to content

Commit

Permalink
pc: use get_uint() for "iobase" property
Browse files Browse the repository at this point in the history
TYPE_ISA_FDC's property "iobase" is defined with DEFINE_PROP_UINT32().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-31-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
  • Loading branch information
elmarco authored and Markus Armbruster committed Jun 20, 2017
1 parent 6055536 commit 1ea1572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/i386/pc.c
Expand Up @@ -347,7 +347,7 @@ static int check_fdc(Object *obj, void *opaque)
return 0;
}

iobase = object_property_get_int(obj, "iobase", &local_err);
iobase = object_property_get_uint(obj, "iobase", &local_err);
if (local_err || iobase != 0x3f0) {
error_free(local_err);
return 0;
Expand Down

0 comments on commit 1ea1572

Please sign in to comment.