Fixed broken save/restore feature: set() argument type must be Bit64s.

This commit is contained in:
Volker Ruppert 2021-02-11 09:29:44 +00:00
parent 744efe9c22
commit d154ead26b
2 changed files with 3 additions and 3 deletions

View File

@ -657,9 +657,9 @@ Bit64s bx_shadow_bool_c::get64()
}
}
void bx_shadow_bool_c::set(bool newval)
void bx_shadow_bool_c::set(Bit64s newval)
{
*(val.pbool) = newval;
*(val.pbool) = (newval != 0);
if (handler) {
// the handler can override the new value and/or perform some side effect
(*handler)(this, 1, (Bit64s)newval);

View File

@ -342,7 +342,7 @@ public:
const char *name,
bool *ptr_to_real_val);
virtual Bit64s get64();
virtual void set(bool val);
virtual void set(Bit64s val);
};