提交 b9a51f53 编写于 作者: B Behdad Esfahbod

Minor

上级 bdb6da72
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册