]> sourceware.org Git - newlib-cygwin.git/commitdiff
machine/_types.h: __blkcnt_t should be signed
authorRay Donnelly <mingw.android@gmail.com>
Thu, 14 Jul 2016 11:40:47 +0000 (12:40 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 14 Jul 2016 17:02:57 +0000 (19:02 +0200)
[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

winsup/cygwin/include/machine/_types.h

index e6ed3138958fddf3b1b8bdfb43d6bb8131f8111a..7e636f8f833a551bcab5d64275c553dae5fbe8d4 100644 (file)
@@ -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;
This page took 0.034003 seconds and 5 git commands to generate.