mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fix version increment in zero-sized clear
This commit is contained in:
parent
2025f0619d
commit
d2ed047ebc
1 changed files with 2 additions and 2 deletions
|
@ -429,10 +429,10 @@ namespace System.Collections
|
|||
if (mSize > 0)
|
||||
{
|
||||
mSize = 0;
|
||||
}
|
||||
#if VERSION_LIST
|
||||
mVersion++;
|
||||
mVersion++;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/*public static void DeleteItemsAndClear<T>(List<T> list) where T : delete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue