cmockery
cmockery copied to clipboard
_test_free() casts pointer to int on LP64 platforms
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 [email protected] on 2 Mar 2010 at 1:54