From 85700892601100de075e29032b494edb46dca6f0 Mon Sep 17 00:00:00 2001 From: Jim Monte Date: Mon, 23 Dec 2019 01:03:35 -0500 Subject: [PATCH] Removed unnecessary comparisons when lowercasing a string. --- src/xspice/cmpp/util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xspice/cmpp/util.c b/src/xspice/cmpp/util.c index 1a0a0ef5a..635083c64 100644 --- a/src/xspice/cmpp/util.c +++ b/src/xspice/cmpp/util.c @@ -85,9 +85,7 @@ void str_to_lower(char *s) char c; for(i = 0; (c = s[i]) != '\0'; i++) - if(isalpha_c(c)) - if(isupper_c(c)) - s[i] = tolower_c(c); + s[i] = tolower_c(c); }