浏览代码

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.
James Buren 3 年之前
父节点
当前提交
e27a3eff0a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/compress.pyx

+ 1 - 1
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