diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-17 15:56:12 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-17 15:56:12 +0200 |
commit | 2d9d4eb84b386204225f1129a91799284a891fc7 (patch) | |
tree | 3a91502c185c68bc7906b5d13e8a754ab33cea01 | |
parent | bf09bcc74feaaca7a8e914e6c00fbc07caff899b (diff) | |
download | vala-2d9d4eb84b386204225f1129a91799284a891fc7.tar.gz |
gee: Fix type-arguments in cast
-rw-r--r-- | gee/collection.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gee/collection.vala b/gee/collection.vala index 84162232a..eeaf1cd6d 100644 --- a/gee/collection.vala +++ b/gee/collection.vala @@ -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 { |