From: Matthew Fernandez Date: Sun, 6 Mar 2022 22:46:51 +0000 (-0800) Subject: epsf_emit_body: remove unnecessary parens and make some comparisons more obvious X-Git-Tag: 4.0.0~188^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=243c4d8158eddb40e29ca83315e1b25667e6e892;p=graphviz epsf_emit_body: remove unnecessary parens and make some comparisons more obvious --- diff --git a/lib/common/psusershape.c b/lib/common/psusershape.c index 3ec377035..a6ce33e98 100644 --- a/lib/common/psusershape.c +++ b/lib/common/psusershape.c @@ -195,7 +195,7 @@ void epsf_emit_body(GVJ_t *job, usershape_t *us) !strncasecmp(p, "%%END", 5) || !strncasecmp(p, "%%TRAILER", 9)) { /* check for *p since last line might not end in '\n' */ while (*p != '\0' && *p != '\r' && *p != '\n') p++; - if ((*p == '\r') && (*(p+1) == '\n')) p += 2; + if (*p == '\r' && p[1] == '\n') p += 2; else if (*p) p++; continue; } @@ -204,7 +204,7 @@ void epsf_emit_body(GVJ_t *job, usershape_t *us) gvputc(job, *p); p++; } - if ((*p == '\r') && (*(p+1) == '\n')) p += 2; + if (*p == '\r' && p[1] == '\n') p += 2; else if (*p) p++; gvputc(job, '\n'); }