Skip to content

Conversation

opsysdebug
Copy link

(hole_right_offset >= (uint32_t)_bwd_cell_offset && (hole_right_offset - _bwd_cell_offset - _bwd_cell_size > 0)) ||

Fix the issue the result of the subtraction hole_right_offset - _bwd_cell_offset - _bwd_cell_size should be cast to a signed type (e.g., int64_t) before performing the comparison. This ensures that the subtraction can produce negative values, and the comparison > 0 will behave as intended.

Steps to fix:

  1. Cast the result of the subtraction to int64_t before performing the comparison.
  2. Ensure that the cast does not affect other parts of the code or introduce unintended side effects.

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.

3 participants