Skip to content

Commit

Permalink
gee: Fix type-arguments in cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ricotz committed Apr 17, 2023
1 parent bf09bcc commit 2d9d4eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gee/collection.vala
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ public abstract class Vala.Collection<G> : Iterable<G> {
} else if (t == typeof (uint)) {
return (G[]) to_uint_array ((Collection<uint>) this);
} else if (t == typeof (int64)) {
return (G[]) to_int64_array ((Collection<int64>) this);
return (G[]) to_int64_array ((Collection<int64?>) this);
} else if (t == typeof (uint64)) {
return (G[]) to_uint64_array ((Collection<uint64>) this);
return (G[]) to_uint64_array ((Collection<uint64?>) this);
} else if (t == typeof (long)) {
return (G[]) to_long_array ((Collection<long>) this);
} else if (t == typeof (ulong)) {
return (G[]) to_ulong_array ((Collection<ulong>) this);
} else if (t == typeof (float)) {
return (G[]) to_float_array ((Collection<float>) this);
return (G[]) to_float_array ((Collection<float?>) this);
} else if (t == typeof (double)) {
return (G[]) to_double_array ((Collection<double>) this);
return (G[]) to_double_array ((Collection<double?>) this);
} else if (t.is_enum () || t.is_flags ()) {
return (G[]) to_int_array ((Collection<int>) this);
} else {
Expand Down

0 comments on commit 2d9d4eb

Please sign in to comment.