重置上传,新增了多个标准库,开始 TransPyV 自举实验

This commit is contained in:
2026-07-19 11:38:15 +08:00
parent 796222a300
commit 4e66207ba1
1041 changed files with 6597 additions and 27814 deletions

View File

@@ -31,9 +31,8 @@ class Vector[T]():
if self.pool == None: return
new_capacity: t.CSizeT = self.capacity * 2
if new_capacity == 0: new_capacity = 4
old_size: t.CSizeT = self.capacity * self.elem_size
new_size: t.CSizeT = new_capacity * self.elem_size
new_data: t.CVoid | t.CPtr = self.pool.realloc(self.data, old_size, new_size)
new_data: t.CVoid | t.CPtr = self.pool.realloc(self.data, new_size)
if new_data == None: return
self.data = new_data
self.capacity = new_capacity