added comments for vercomp
This commit is contained in:
parent
bba8e7ad1c
commit
d4d6bf61a7
1 changed files with 2 additions and 0 deletions
|
|
@ -964,10 +964,12 @@ vercomp() {
|
|||
fi
|
||||
if ((10#${ver1[i]} > 10#${ver2[i]}))
|
||||
then
|
||||
# version 1 is greater than version 2
|
||||
return 1
|
||||
fi
|
||||
if ((10#${ver1[i]} < 10#${ver2[i]}))
|
||||
then
|
||||
# version 1 is less than version 2
|
||||
return 2
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue