Build code with -Wcast-qual, -Wcast-align and -Wsign-compare.
--HG-- extra : convert_revision : d489ad995bb69850cba5a352f3ac85b74a54b5cf
This commit is contained in:
parent
ae1fb7b50c
commit
bd3484fa6b
9 changed files with 16 additions and 10 deletions
|
@ -241,7 +241,7 @@ xbps_cmpver_packages(const char *pkg1, const char *pkg2)
|
|||
|
||||
/* Shortcut check for equality before invoking the parsing routines. */
|
||||
if (result == 0 && (ve1 - v1 != ve2 - v2 ||
|
||||
strncasecmp(v1, v2, ve1 - v1) != 0)) {
|
||||
strncasecmp(v1, v2, (size_t)ve1 - (size_t)v1) != 0)) {
|
||||
/* Loop over different components (the parts separated by dots).
|
||||
* If any component differs, we have the basis for an inequality. */
|
||||
while(result == 0 && (v1 < ve1 || v2 < ve2)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue