Skip to content

Remove is_error invokation on function return with valid negative values#243

Merged
martint merged 1 commit intoairlift:masterfrom
jklamer:jklamer/NoIsErrorOnFrameSize
Sep 25, 2024
Merged

Remove is_error invokation on function return with valid negative values#243
martint merged 1 commit intoairlift:masterfrom
jklamer:jklamer/NoIsErrorOnFrameSize

Conversation

@jklamer
Copy link
Contributor

@jklamer jklamer commented Sep 25, 2024

ZSTD_isError() can be used to validate many output values of many methods, and is called out for those methods in the manual. It is not called out as being usable to validate the output of ZSTD_getFrameContentSize in that manual, and the method itself has valid negative returns for content size unknown.

@jklamer jklamer force-pushed the jklamer/NoIsErrorOnFrameSize branch from f998484 to 852deaa Compare September 25, 2024 18:27
@jklamer jklamer force-pushed the jklamer/NoIsErrorOnFrameSize branch from 852deaa to 61ca938 Compare September 25, 2024 18:33
@martint martint merged commit 560bd2c into airlift:master Sep 25, 2024
@jklamer jklamer deleted the jklamer/NoIsErrorOnFrameSize branch September 25, 2024 20:42
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.

2 participants