Skip to content

Commit

Permalink
Fix casting to_range_part from int64 to ptrdiff_t which may fail on 3…
Browse files Browse the repository at this point in the history
…2 bit systems.
  • Loading branch information
Ivorforce committed Sep 17, 2024
1 parent 8151b49 commit ea74671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdconvert/conversion_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
range_part to_range_part(const Variant& variant) {
switch (variant.get_type()) {
case Variant::INT:
return int64_t(variant);
return static_cast<std::ptrdiff_t>(static_cast<int64_t>(variant));
case Variant::NIL:
return xt::placeholders::xtuph{};
default:
Expand Down

0 comments on commit ea74671

Please sign in to comment.