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

_test_free() casts pointer to int on LP64 platforms #23

Open
GoogleCodeExporter opened this issue Dec 8, 2015 · 0 comments
Open

_test_free() casts pointer to int on LP64 platforms #23

GoogleCodeExporter opened this issue Dec 8, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Compile on LP64 platform.
2. Observe gcc warning messages.

What is the expected output? 

No warnings.

What do you see instead?

/Users/smb/src/cmockery-staging/osx/../src/cmockery.c: In function '_test_free':
/Users/smb/src/cmockery-staging/osx/../src/cmockery.c:1405: warning: cast from 
pointer to 
integer of different size



What version of the product are you using? On what operating system?


Please provide any additional information below.

Problem is statement:

_assert_true((int)ptr, "ptr", file, line);


Original issue reported on code.google.com by Stephen....@gmail.com on 2 Mar 2010 at 1:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant