Re: Fix C++ testcases for size_t vs intptr_t

2013-04-24 Thread Gabriel Dos Reis
On Wed, Apr 24, 2013 at 4:59 AM, Bernd Schmidt wrote: > This fixes C++ testcases that used size_t when casting a pointer to > integer so that they use intptr_t instead. There's also an testcase > using pointer subtraction where ptrdiff_t is the correct choice, and a > fix to the ptrmem.C testcase

Fix C++ testcases for size_t vs intptr_t

2013-04-24 Thread Bernd Schmidt
This fixes C++ testcases that used size_t when casting a pointer to integer so that they use intptr_t instead. There's also an testcase using pointer subtraction where ptrdiff_t is the correct choice, and a fix to the ptrmem.C testcase to use sizeof on a function pointer rather than a data pointer.