Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor oslSetImagePixel function for clarity and robustness #57

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 2, 2024

Summary

Refactored the oslSetImagePixel function to improve clarity and robustness.

Key Changes

  • Simplified bounds checking with an early return for out-of-bounds pixels.
  • Ensured type safety with explicit casts for pixel value assignments.

Impact

These changes enhance maintainability and readability without altering the function's behavior.

- Simplified bounds checking with early return for out-of-bounds pixels.
- Added explicit type casts for pixel value assignments to ensure type safety.
- Improved consistency in code formatting and alignment for better readability.
@dogo dogo merged commit e27c524 into master Sep 2, 2024
6 checks passed
@dogo dogo deleted the refactor/oslSetImagePixel branch September 2, 2024 18:07
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