aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/http/httpcli_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/http/httpcli_test.cc')
-rw-r--r--test/core/http/httpcli_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/http/httpcli_test.cc b/test/core/http/httpcli_test.cc
index a8853c86dc..6ad0753f7e 100644
--- a/test/core/http/httpcli_test.cc
+++ b/test/core/http/httpcli_test.cc
@@ -156,7 +156,7 @@ int main(int argc, char** argv) {
char* root;
if (lslash != nullptr) {
/* Hack for bazel target */
- if (lslash - me >= (unsigned)(sizeof("http") - 1) &&
+ if ((unsigned)(lslash - me) >= (sizeof("http") - 1) &&
strncmp(me + (lslash - me) - sizeof("http") + 1, "http",
sizeof("http") - 1) == 0) {
lslash = me + (lslash - me) - sizeof("http");