Skip to content

Comments

refactor(napi/parser): clarify pointer maths#12300

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-15-refactor_napi_parser_clarify_pointer_maths
Jul 15, 2025
Merged

refactor(napi/parser): clarify pointer maths#12300
graphite-app[bot] merged 1 commit intomainfrom
07-15-refactor_napi_parser_clarify_pointer_maths

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 15, 2025

Correct comment for get_buffer_offset (used by raw transfer) about buffer size, and add an additional rounding down. The latter makes no difference because the offset is truncated to u32 straight after anyway, but better to code defensively in case we change buffer size / alignment later on.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Jul 15, 2025
Copy link
Member Author

overlookmotel commented Jul 15, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review July 15, 2025 15:04
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Jul 15, 2025
Copy link
Member Author

overlookmotel commented Jul 15, 2025

Merge activity

Correct comment for `get_buffer_offset` (used by raw transfer) about buffer size, and add an additional rounding down. The latter makes no difference because the offset is truncated to `u32` straight after anyway, but better to code defensively in case we change buffer size / alignment later on.
@graphite-app graphite-app bot force-pushed the 07-15-fix_allocator_fix_fixedsizeallocator_pointer_maths branch from 3662c88 to 13c5783 Compare July 15, 2025 15:09
@graphite-app graphite-app bot force-pushed the 07-15-refactor_napi_parser_clarify_pointer_maths branch from 8a23110 to a2da682 Compare July 15, 2025 15:10
Base automatically changed from 07-15-fix_allocator_fix_fixedsizeallocator_pointer_maths to main July 15, 2025 15:18
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 15, 2025
@graphite-app graphite-app bot merged commit a2da682 into main Jul 15, 2025
16 checks passed
@graphite-app graphite-app bot deleted the 07-15-refactor_napi_parser_clarify_pointer_maths branch July 15, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant