From e27a3eff0ae68eeb0dee07f95e3924de7b521694 Mon Sep 17 00:00:00 2001 From: James Buren Date: Fri, 25 Feb 2022 22:22:17 -0600 Subject: [PATCH] src/borg/compress.pyx: fix compiler warning, closes #6365 This resolves a compiler warning from the generated code that resulted from a comparison of two local variables of different signedness. The issue is resolved by changing the type of both to int since this seems like the safest choice available. --- src/borg/compress.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/compress.pyx b/src/borg/compress.pyx index 480a745fd..4beec0782 100644 --- a/src/borg/compress.pyx +++ b/src/borg/compress.pyx @@ -286,7 +286,7 @@ class ZSTD(DecidingCompressor): if not isinstance(idata, bytes): idata = bytes(idata) # code below does not work with memoryview cdef int isize = len(idata) - cdef size_t osize + cdef int osize cdef char *source = idata cdef char *dest cdef int level = self.level