commit 383e20172e25bee6705fc6ec5acfd83f8f587958
parent b5f6a023517a9e743228f1603c6d42bf4c2392df
Author: Quentin Rameau <quinq@fifth.space>
Date: Fri, 10 Mar 2017 10:21:34 +0100
[libc] Fix ptrdiff_t definition signedness
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libc/include/bits/amd64-sysv/arch/stddef.h b/libc/include/bits/amd64-sysv/arch/stddef.h
@@ -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
@@ -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
@@ -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
@@ -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