Refactor: Change the data type of the variable used to represent memory size to uint64_t#92
Open
yanghaoran29 wants to merge 1 commit intoChaoWao:mainfrom
Open
Refactor: Change the data type of the variable used to represent memory size to uint64_t#92yanghaoran29 wants to merge 1 commit intoChaoWao:mainfrom
yanghaoran29 wants to merge 1 commit intoChaoWao:mainfrom
Conversation
yanghaoran29
commented
Feb 14, 2026
- Change PTO2DepListPool::top data type from int32_t to uint64_t
- Update pto2_dep_pool_used() and pto2_dep_pool_available() return types to uint64_t
- Remove unnecessary type casts in pool statistics functions
- Update printf format specifier from %d to %zu for uint64_t values
c0ad55e to
e41724e
Compare
1. Change heap size and related memory size data types to uint64_t 2. Replace unnecessary size_t usage with uint64_t throughout the codebase to avoid implicit conversion issues on platforms that don't support size_t/uint64_t implicit conversion 3. Add explicit type casts for -Wconversion compatibility when calling low-level functions (malloc, alloc, memcpy, write) that require size_t
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.