Skip to content

Comments

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
yanghaoran29:yhr
Open

Refactor: Change the data type of the variable used to represent memory size to uint64_t#92
yanghaoran29 wants to merge 1 commit intoChaoWao:mainfrom
yanghaoran29:yhr

Conversation

@yanghaoran29
Copy link

  • 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

@yanghaoran29 yanghaoran29 force-pushed the yhr branch 8 times, most recently from c0ad55e to e41724e Compare February 14, 2026 07:52
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
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.

1 participant