Skip to content

Conversation

@puji4810
Copy link
Contributor

…s for improved nullability guarantees

  • 为函数添加 [[gnu::returns_nonnull]] 属性
  • reallocate_n 等几个函数可能传 n = 0 导致的错误进行修改,在 p!=nullptr 的情况下都会 deallocate(oldn)
  • oldn == n 时直接返回

@trcrsired trcrsired merged commit c64c696 into cppfastio:next Dec 19, 2025
2 checks passed
@puji4810 puji4810 deleted the adaptor branch December 20, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants