[hackers] [scc] [libc] Fix ptrdiff_t definition signedness || Quentin Rameau

From: <git_AT_suckless.org>
Date: Fri, 17 Mar 2017 08:50:00 +0100 (CET)

commit 383e20172e25bee6705fc6ec5acfd83f8f587958
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Fri Mar 10 10:21:34 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Fri Mar 17 08:47:03 2017 +0100

    [libc] Fix ptrdiff_t definition signedness

diff --git a/libc/include/bits/amd64-sysv/arch/stddef.h b/libc/include/bits/amd64-sysv/arch/stddef.h
index 76ebb50..e33ace0 100644
--- a/libc/include/bits/amd64-sysv/arch/stddef.h
+++ b/libc/include/bits/amd64-sysv/arch/stddef.h
_AT_@ -11,6 +11,6 @@ typedef short wchar_t;
 #endif
 
 #ifndef _PTRDIFF_T
-typedef unsigned long ptrdiff_t;
+typedef long ptrdiff_t;
 #define _PTRDIFF_T
 #endif
diff --git a/libc/include/bits/i386-sysv/arch/stddef.h b/libc/include/bits/i386-sysv/arch/stddef.h
index 76ebb50..e33ace0 100644
--- a/libc/include/bits/i386-sysv/arch/stddef.h
+++ b/libc/include/bits/i386-sysv/arch/stddef.h
_AT_@ -11,6 +11,6 @@ typedef short wchar_t;
 #endif
 
 #ifndef _PTRDIFF_T
-typedef unsigned long ptrdiff_t;
+typedef long ptrdiff_t;
 #define _PTRDIFF_T
 #endif
diff --git a/libc/include/bits/qbe/arch/stddef.h b/libc/include/bits/qbe/arch/stddef.h
index 76ebb50..e33ace0 100644
--- a/libc/include/bits/qbe/arch/stddef.h
+++ b/libc/include/bits/qbe/arch/stddef.h
_AT_@ -11,6 +11,6 @@ typedef short wchar_t;
 #endif
 
 #ifndef _PTRDIFF_T
-typedef unsigned long ptrdiff_t;
+typedef long ptrdiff_t;
 #define _PTRDIFF_T
 #endif
diff --git a/libc/include/bits/z80/arch/stddef.h b/libc/include/bits/z80/arch/stddef.h
index 5e1a46a..08c3589 100644
--- a/libc/include/bits/z80/arch/stddef.h
+++ b/libc/include/bits/z80/arch/stddef.h
_AT_@ -11,6 +11,6 @@ typedef short wchar_t;
 #endif
 
 #ifndef _PTRDIFF_T
-typedef unsigned short ptrdiff_t;
+typedef short ptrdiff_t;
 #define _PTRDIFF_T
 #endif
Received on Fri Mar 17 2017 - 08:50:00 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 17 2017 - 09:00:44 CET