mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +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.val.bool_ = 0;
|
||||
|
||||
if (argc > 0 || input.type != RDT_BOOL)
|
||||
res.val.bool_ = 0;
|
||||
else
|
||||
if (!(argc > 0 || input.type != RDT_BOOL))
|
||||
res.val.bool_ = input.val.bool_;
|
||||
|
||||
return res;
|
||||
@ -132,9 +130,7 @@ static struct rmsgpack_dom_value func_equals(
|
||||
{
|
||||
arg = argv[0];
|
||||
|
||||
if (arg.type != AT_VALUE)
|
||||
res.val.bool_ = 0;
|
||||
else
|
||||
if (arg.type == AT_VALUE)
|
||||
{
|
||||
if ( input.type == RDT_UINT &&
|
||||
arg.a.value.type == RDT_INT)
|
||||
@ -171,7 +167,7 @@ static struct rmsgpack_dom_value query_func_operator_or(
|
||||
), 0, NULL);
|
||||
|
||||
if (res.val.bool_)
|
||||
return res;
|
||||
break;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user