This commit is contained in:
Behdad Esfahbod 2018-12-21 15:05:00 -05:00
parent bdb6da7226
commit b9a51f5310
1 changed files with 2 additions and 2 deletions

View File

@ -177,13 +177,13 @@ struct ValueFormat : HBUINT16
{ return *CastP<OffsetTo<Device> > (value); }
static const OffsetTo<Device>& get_device (const Value* value, bool *worked=nullptr)
{
if (worked) *worked |= *value;
if (worked) *worked |= bool (*value);
return *CastP<OffsetTo<Device> > (value);
}
static const HBINT16& get_short (const Value* value, bool *worked=nullptr)
{
if (worked) *worked |= *value;
if (worked) *worked |= bool (*value);
return *CastP<HBINT16> (value);
}