Skip to content

Commit

Permalink
GH-43 Fix more AppleClang ambiguity issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Dec 30, 2023
1 parent 43aa43e commit b42aba3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/script/nodes/flow_control/switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ bool OScriptNodeSwitchEditablePin::_set(const StringName& p_name, const Variant&
{
const int64_t index = p_name.get_slicec('_', 2).to_int() - 1;

const size_t current_size = _pin_names.size();
const int64_t current_size = _pin_names.size();
if (index >= current_size)
{
_pin_names.resize(index + 1);
Expand Down
2 changes: 1 addition & 1 deletion src/script/nodes/functions/function_terminator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ bool OScriptNodeFunctionTerminator::_set(const StringName& p_name, const Variant
Ref<OScriptFunction> function = get_function();
if (function.is_valid())
{
if (function->resize_argument_list(p_value))
if (function->resize_argument_list(static_cast<int64_t>(p_value)))
notify_property_list_changed();
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/script/nodes/signals/emit_signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ bool OScriptNodeEmitSignal::_set(const StringName& p_name, const Variant& p_valu
{
if (_signal.is_valid())
{
if (_signal->resize_argument_list(p_value))
if (_signal->resize_argument_list(static_cast<int64_t>(p_value)))
notify_property_list_changed();
return true;
}
Expand Down

0 comments on commit b42aba3

Please sign in to comment.