diff options
Diffstat (limited to 'extras/ValaBinding/Parser/Afrodite.cs')
-rw-r--r-- | extras/ValaBinding/Parser/Afrodite.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/ValaBinding/Parser/Afrodite.cs b/extras/ValaBinding/Parser/Afrodite.cs index 5979d8eaf9..e1dabf9d09 100644 --- a/extras/ValaBinding/Parser/Afrodite.cs +++ b/extras/ValaBinding/Parser/Afrodite.cs @@ -793,7 +793,7 @@ namespace MonoDevelop.ValaBinding.Parser.Afrodite internal List<T> ToTypedList<T> (Func<IntPtr,T> factory) { - List<T> list = new List<T> (Count); + List<T> list = new List<T> (Math.Max (0, Count)); foreach (IntPtr item in this) { list.Add (factory (item)); } |