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

Use the correct format specifiers #810

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

AreaZR
Copy link

@AreaZR AreaZR commented May 2, 2023

opt_len, static_len, bits_sent, etc. are all unsigned longs, not signed longs.

For this reason, the Trace_ev strings should be changed to reflect that.

opt_len, static_len, bits_sent, etc. are all unsigned longs, not signed longs.
@AreaZR AreaZR changed the title Use the correct format specifiers. Use the correct format specifiers May 2, 2023
@@ -109,7 +109,7 @@ static char *strwinerror (error)
LocalFree(msgbuf);
}
else {
sprintf(buf, "unknown win32 error (%ld)", error);
sprintf(buf, "unknown win32 error (%u)", error);

Choose a reason for hiding this comment

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

%u or %lu?

Copy link
Author

Choose a reason for hiding this comment

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

DWORD is unsigned int (yeah I know) on windows

Copy link

Choose a reason for hiding this comment

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

DWORD is unsigned int

DWORD is unsigned long

Copy link
Contributor

Choose a reason for hiding this comment

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

@madler madler changed the base branch from master to develop August 3, 2023 18:29
@Neustradamus
Copy link

@madler: Can you look this PR?

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.

4 participants