mirror of https://github.com/xzeldon/htop.git
Resolve clang-analyzer signed/unsigned comparison CI failure
This commit is contained in:
parent
fc7aead36b
commit
dfb9b82607
|
@ -377,7 +377,7 @@ void LinuxProcess_makeCommandStr(Process* this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(cmdlineBasenameOffset >= 0);
|
assert(cmdlineBasenameOffset >= 0);
|
||||||
assert(cmdlineBasenameOffset <= strlen(cmdline));
|
assert(cmdlineBasenameOffset <= (int)strlen(cmdline));
|
||||||
|
|
||||||
if (!showMergedCommand || !procExe || !procComm) { /* fall back to cmdline */
|
if (!showMergedCommand || !procExe || !procComm) { /* fall back to cmdline */
|
||||||
if (showMergedCommand && !procExe && procComm && strlen(procComm)) { /* Prefix column with comm */
|
if (showMergedCommand && !procExe && procComm && strlen(procComm)) { /* Prefix column with comm */
|
||||||
|
@ -415,7 +415,7 @@ void LinuxProcess_makeCommandStr(Process* this) {
|
||||||
int exeBasenameLen = exeLen - exeBasenameOffset;
|
int exeBasenameLen = exeLen - exeBasenameOffset;
|
||||||
|
|
||||||
assert(exeBasenameOffset >= 0);
|
assert(exeBasenameOffset >= 0);
|
||||||
assert(exeBasenameOffset <= strlen(procExe));
|
assert(exeBasenameOffset <= (int)strlen(procExe));
|
||||||
|
|
||||||
/* Start with copying exe */
|
/* Start with copying exe */
|
||||||
if (showProgramPath) {
|
if (showProgramPath) {
|
||||||
|
|
Loading…
Reference in New Issue