修复StringInstance末位添0时可能内存不够的问题
This commit is contained in:
@@ -400,7 +400,7 @@ namespace hgl
|
||||
|
||||
if(need_length>malloc_length)
|
||||
{
|
||||
malloc_length=power_to_2(need_length);
|
||||
malloc_length=power_to_2(need_length+1);
|
||||
|
||||
T *new_str=new T[malloc_length];
|
||||
|
||||
|
Reference in New Issue
Block a user