Merge pull request #2239 from igt-gteubl/csharp-capacity-cs0034
C#: Fix CS0034 in Capacity method of std::vector
This commit is contained in:
commit
e4c972c328
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@
|
|||
return (int)capacity();
|
||||
}
|
||||
set {
|
||||
if (value < size())
|
||||
if (value < 0 || ($typemap(cstype, size_t))value < size())
|
||||
throw new global::System.ArgumentOutOfRangeException("Capacity");
|
||||
reserve(($typemap(cstype, size_t))value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue