Commit 30de8e17 authored by Sean McBride's avatar Sean McBride Committed by Brad King
Browse files

Fixed -Wsign-conversion warnings by adding casts

parent 4de1241f
......@@ -389,8 +389,8 @@ struct kwsysEnvCompare
#else
const char* leq = strchr(l, '=');
const char* req = strchr(r, '=');
size_t llen = leq ? (leq - l) : strlen(l);
size_t rlen = req ? (req - r) : strlen(r);
size_t llen = leq ? static_cast<size_t>(leq - l) : strlen(l);
size_t rlen = req ? static_cast<size_t>(req - r) : strlen(r);
if (llen == rlen) {
return strncmp(l, r, llen) < 0;
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment