Jeff King <peff@xxxxxxxx> writes: > @@ > -struct object_id *OIDPTR1; > -struct object_id *OIDPTR2; > +expression OIDPTR1; > +expression OIDPTR2; > @@ > - oidcmp(OIDPTR1, OIDPTR2) == 0 > + oideq(OIDPTR1, OIDPTR2) > @@ -71,8 +71,8 @@ expression E1, E2; > ...>} > > @@ > -struct object_id *OIDPTR1; > -struct object_id *OIDPTR2; > +expression *OIDPTR1; > +expression *OIDPTR2; > @@ > - oidcmp(OIDPTR1, OIDPTR2) != 0 > + !oideq(OIDPTR1, OIDPTR2) With an extra insight from the counter-example Réne pointed out in your message, I think the above two are safe but all the others are unsafe.