Conversation
- 添加 <stdexcept> 头文件 - 使用 std::bad_alloc 替代 exit(1) 处理内存分配失败 - 添加 MARK_UNSET 常量替代 magic number -1 - 将 mark_ 类型从 int32_t 改为 uint32_t - 更新 README 添加内存对齐和异常处理说明
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
根据 code review 的反馈,修复了以下剩余问题:
错误处理改进
<stdexcept>头文件std::bad_alloc替代exit(1)处理内存分配失败代码质量改进
MARK_UNSET常量(值为UINT32_MAX)替代 magic number -1mark_类型从int32_t改为uint32_t文档更新
Code Review 问题修复状态