修正了 TPC 的一些错误,包括 Test 维护后 TPV 无法重新编译或重编译后越界的部分问题
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import t, c
|
||||
import memhub
|
||||
import string
|
||||
import stdio
|
||||
from stdint import *
|
||||
|
||||
|
||||
@@ -25,11 +24,7 @@ class list[T]:
|
||||
__iter_index__: t.CSizeT
|
||||
|
||||
def __new__(self, pool: memhub.MemManager | t.CPtr, elem_size: t.CSizeT = 0):
|
||||
stdio.printf("DBG __new__: entry\n")
|
||||
stdio.fflush(None)
|
||||
ret = pool.alloc(48)
|
||||
stdio.printf("DBG __new__: alloc returned %p\n", ret)
|
||||
stdio.fflush(None)
|
||||
return ret
|
||||
|
||||
def __init__(self, pool: memhub.MemManager | t.CPtr, elem_size: t.CSizeT = 0):
|
||||
|
||||
Reference in New Issue
Block a user