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

dump-vtable.c: 2 * undefined behaviour ? #2

Open
dcb314 opened this issue Jan 17, 2016 · 1 comment
Open

dump-vtable.c: 2 * undefined behaviour ? #2

dcb314 opened this issue Jan 17, 2016 · 1 comment

Comments

@dcb314
Copy link

dcb314 commented Jan 17, 2016

dump-vtable.c:315:46: warning: flag '0' results in undefined behavior with 'p' conversion specifier [-Wformat]

 printf("(int (*)(...)) -%016p\n", (void*) -(ptrdiff_t)vfuncp);

dump-vtable.c:319:45: warning: flag '0' results in undefined behavior with 'p' conversion specifier [-Wformat]

  printf("(int (*)(...)) %016p\n", vfuncp);
@emaste
Copy link

emaste commented Jan 13, 2017

Addressed in pull request #8

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

No branches or pull requests

2 participants