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

Fix -Wsign-compare warnings in x86/ffi64.c #232

Merged
merged 1 commit into from May 18, 2016
Merged

Fix -Wsign-compare warnings in x86/ffi64.c #232

merged 1 commit into from May 18, 2016

Conversation

berkerpeksag
Copy link
Contributor

This was originally reported on the Python tracker:

https://bugs.python.org/issue23958

The original patch was written by Steve R. Hastings.

I've updated it to current master of libffi.

@@ -350,7 +350,7 @@ examine_argument (ffi_type *type, enum x86_64_reg_class classes[MAX_CLASSES],
_Bool in_return, int *pngpr, int *pnsse)
{
size_t n;
int i, ngpr, nsse;
unsigned int i, ngpr, nsse;
Copy link
Member

Choose a reason for hiding this comment

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

This changes the type of ngpr and nsse, but those are later assigned like *pngpr = ngpr; -- where pngpr is a pointer-to-int.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review. I've now updated the patch.

This was originally reported on the Python tracker:

  httpa://bugs.python.org/issue23958

The original patch was written by Steve R. Hastings.

I've updated it to current master of libffi.
@tromey tromey merged commit 0969a1c into libffi:master May 18, 2016
@berkerpeksag berkerpeksag deleted the signcompare branch May 18, 2016 16:32
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.

None yet

2 participants