Skip to content

Correctly return the first element of the array#600

Merged
Enet4 merged 1 commit intoEnet4:masterfrom
dougyau:voi-lut-panic
Nov 13, 2024
Merged

Correctly return the first element of the array#600
Enet4 merged 1 commit intoEnet4:masterfrom
dougyau:voi-lut-panic

Conversation

@dougyau
Copy link
Copy Markdown
Contributor

@dougyau dougyau commented Nov 12, 2024

The fallback code of rescale and voi lut functions return an empty slice instead of the expected 1 element slice.

@Enet4 Enet4 added bug This is a bug A-lib Area: library C-pixeldata Crate: dicom-pixeldata labels Nov 13, 2024
Copy link
Copy Markdown
Owner

@Enet4 Enet4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good catch, that was clearly off. 👍

@Enet4 Enet4 merged commit 463d1ae into Enet4:master Nov 13, 2024
@dougyau dougyau deleted the voi-lut-panic branch November 13, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library bug This is a bug C-pixeldata Crate: dicom-pixeldata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants