1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 12:54:15 +02:00

Fix version increment in zero-sized clear

This commit is contained in:
Brian Fiete 2022-06-01 11:01:29 -07:00
parent 2025f0619d
commit d2ed047ebc

View file

@ -429,10 +429,10 @@ namespace System.Collections
if (mSize > 0) if (mSize > 0)
{ {
mSize = 0; mSize = 0;
}
#if VERSION_LIST #if VERSION_LIST
mVersion++; mVersion++;
#endif #endif
}
} }
/*public static void DeleteItemsAndClear<T>(List<T> list) where T : delete /*public static void DeleteItemsAndClear<T>(List<T> list) where T : delete