Pointer comparators and difference match the C standard.

Fixed two issues with pointer operations.
C11 6.5.6.9: Ptr subtraction have type ptrdiff_t.
C11 6.5.8.6, 6.5.9.3: Ptr comparisons have type int.
Sorry, I just made the change without running, since sometimes I'm on a PC
that can't build 8cc. I'll run tests on my server now.

On Thu, Nov 27, 2014 at 2:58 PM, Rui Ueyama <notifications@github.com>
wrote:

> In test/pointer.c:
>
> > @@ -57,9 +57,34 @@ static void t7() {
> >  static void subtract(void) {
> >      char *p = "abcdefg";
> >      char *q = p + 5;
> > +    expect(sizeof(8), sizeof(q - p));
>
> Oh wait, you made a mistake here. sizeof(8) -> 8. Did it actually pass?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/rui314/8cc/pull/22/files#r20975940>.
>