From: Ray Donnelly Date: Thu, 14 Jul 2016 11:40:47 +0000 (+0100) Subject: machine/_types.h: __blkcnt_t should be signed X-Git-Tag: cygwin-2_6_0-release~125 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=82e06490de56519d6310282bf321433537e9efa0;p=newlib-cygwin.git machine/_types.h: __blkcnt_t should be signed [1] states: "blkcnt_t and off_t shall be signed integer types." This causes pacman to fail when the size requirement of the net update operation is negative, instead it calculated a huge positive number. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html --- diff --git a/winsup/cygwin/include/machine/_types.h b/winsup/cygwin/include/machine/_types.h index e6ed31389..7e636f8f8 100644 --- a/winsup/cygwin/include/machine/_types.h +++ b/winsup/cygwin/include/machine/_types.h @@ -14,7 +14,7 @@ typedef __uint32_t __ino32_t; #endif #define __machine_blkcnt_t_defined -typedef __uint64_t __blkcnt_t; +typedef __int64_t __blkcnt_t; #define __machine_blksize_t_defined typedef __int32_t __blksize_t;