diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/t/t-deb-version.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dpkg/t/t-deb-version.c b/lib/dpkg/t/t-deb-version.c index fef115142..88b94e95e 100644 --- a/lib/dpkg/t/t-deb-version.c +++ b/lib/dpkg/t/t-deb-version.c @@ -74,7 +74,7 @@ test_deb_version_parse(void) test_pass(deb_version_parse(&v, vs) == NULL); free(vs); - if (asprintf(&vs, "%ld.0", (long int)(1L + INT_MAX)) < 0) + if (asprintf(&vs, "%u.0", 1U + (unsigned int)INT_MAX) < 0) test_bail("cannot allocate memory for asprintf()"); test_fail(deb_version_parse(&v, vs) == NULL); free(vs); |