mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
rust/hpet: Clean up type mismatch for num_timers property
Now `num_timers` is `usize` other than `u8`. Although the type field in `declare_properties` macro hasn't been used, it's better to explicitly point this out and clean up this before doing other property work. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20250920160520.3699591-11-zhao1.liu@intel.com
This commit is contained in:
@@ -909,7 +909,7 @@ declare_properties! {
|
||||
HPETState,
|
||||
num_timers,
|
||||
unsafe { &qdev_prop_usize },
|
||||
u8,
|
||||
usize,
|
||||
default = HPET_MIN_TIMERS
|
||||
),
|
||||
define_property!(
|
||||
|
||||
Reference in New Issue
Block a user