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

implicit casting workaround #744

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

implicit casting workaround #744

wants to merge 4 commits into from

Conversation

ami-GS
Copy link

@ami-GS ami-GS commented Nov 14, 2024

Description

Fixes #741.
Implicit cast

Testing

CI

Documentation

N/A

Installation

N/A

@ami-GS ami-GS marked this pull request as ready for review November 14, 2024 23:21
@ami-GS ami-GS requested a review from a team as a code owner November 14, 2024 23:21
@mtfriesen
Copy link
Contributor

Please fill out the PR template for each PR.

@@ -25,11 +25,14 @@ typedef NTSTATUS XDP_STATUS;

typedef HRESULT XDP_STATUS;

#define SUCCESS_HRESULT_FROM_WIN32(x) \
Copy link
Contributor

Choose a reason for hiding this comment

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

We can't do this, because other code does HRESULT_FROM_WIN32(GetLastError()) and would produce inconsistent results. What are you trying to achieve here?

Copy link
Author

Choose a reason for hiding this comment

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

I just copied from MsQuic. trying to resolve implicit cast. I'm not sure how to resolve other than this

Copy link
Contributor

Choose a reason for hiding this comment

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

I think your original solution was fine, other than a comment was needed.

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.

Implicit type cast warning/error
3 participants