mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
res.val.bool_ was being set a second time to 0 unnecessarily
This commit is contained in:
parent
edf8fd99c7
commit
e9e25aae7d
@ -110,9 +110,7 @@ static struct rmsgpack_dom_value query_func_is_true(
|
|||||||
res.type = RDT_BOOL;
|
res.type = RDT_BOOL;
|
||||||
res.val.bool_ = 0;
|
res.val.bool_ = 0;
|
||||||
|
|
||||||
if (argc > 0 || input.type != RDT_BOOL)
|
if (!(argc > 0 || input.type != RDT_BOOL))
|
||||||
res.val.bool_ = 0;
|
|
||||||
else
|
|
||||||
res.val.bool_ = input.val.bool_;
|
res.val.bool_ = input.val.bool_;
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
@ -132,9 +130,7 @@ static struct rmsgpack_dom_value func_equals(
|
|||||||
{
|
{
|
||||||
arg = argv[0];
|
arg = argv[0];
|
||||||
|
|
||||||
if (arg.type != AT_VALUE)
|
if (arg.type == AT_VALUE)
|
||||||
res.val.bool_ = 0;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if ( input.type == RDT_UINT &&
|
if ( input.type == RDT_UINT &&
|
||||||
arg.a.value.type == RDT_INT)
|
arg.a.value.type == RDT_INT)
|
||||||
@ -171,7 +167,7 @@ static struct rmsgpack_dom_value query_func_operator_or(
|
|||||||
), 0, NULL);
|
), 0, NULL);
|
||||||
|
|
||||||
if (res.val.bool_)
|
if (res.val.bool_)
|
||||||
return res;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user