Skip to content

Commit fa52e11

Browse files
committed
linting fixups
1 parent 13d7f2e commit fa52e11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyunrealsdk/unreal_bindings/wrapped_array_methods.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ size_t array_py_index(const WrappedArray& self,
105105
void array_py_insert(WrappedArray& self, py::ssize_t py_idx, const py::object& value) {
106106
auto size = self.size();
107107

108-
if (static_cast<size_t>(py_idx) == size) {
108+
if (std::cmp_equal(py_idx, size)) {
109109
// We're just appending
110110
array_py_append(self, value);
111111
return;
@@ -193,7 +193,7 @@ void array_py_emplace_struct(WrappedArray& self,
193193

194194
auto size = self.size();
195195

196-
if (static_cast<size_t>(py_idx) >= size) {
196+
if (std::cmp_greater_equal(py_idx, size)) {
197197
// We're just appending
198198
self.resize(size + 1);
199199
try {

0 commit comments

Comments
 (0)